cleanup
This commit is contained in:
parent
a24264093d
commit
81bfbb9a2a
@ -49,11 +49,9 @@ namespace Mk0.Software.ImageSorter
|
|||||||
private FormWindowState lastState = FormWindowState.Minimized;
|
private FormWindowState lastState = FormWindowState.Minimized;
|
||||||
private string defaultWindowName;
|
private string defaultWindowName;
|
||||||
private bool blockZoom = false;
|
private bool blockZoom = false;
|
||||||
private float scaling;
|
|
||||||
|
|
||||||
public Main()
|
public Main()
|
||||||
{
|
{
|
||||||
scaling = (float)DeviceDpi / 96;
|
|
||||||
blockZoom = true;
|
blockZoom = true;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
defaultWindowName = Text;
|
defaultWindowName = Text;
|
||||||
@ -756,12 +754,9 @@ namespace Mk0.Software.ImageSorter
|
|||||||
{
|
{
|
||||||
imageIndex = 0;
|
imageIndex = 0;
|
||||||
}
|
}
|
||||||
//blockZoom = true;
|
|
||||||
pictureBoxImage.LoadAsync(CropImageBorders(images.ElementAt(imageIndex)));
|
pictureBoxImage.LoadAsync(CropImageBorders(images.ElementAt(imageIndex)));
|
||||||
string resolutionTitle = "";
|
string resolutionTitle = "";
|
||||||
Text = defaultWindowName + " - " + Path.GetFileName(pictureBoxImage.ImageLocation) + resolutionTitle;
|
Text = defaultWindowName + " - " + Path.GetFileName(pictureBoxImage.ImageLocation) + resolutionTitle;
|
||||||
//Zoom();
|
|
||||||
//Zoom();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1297,7 +1292,6 @@ namespace Mk0.Software.ImageSorter
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void PictureBox_LoadCompleted(object sender, AsyncCompletedEventArgs e)
|
private void PictureBox_LoadCompleted(object sender, AsyncCompletedEventArgs e)
|
||||||
{
|
{
|
||||||
//if (blockZoom) { blockZoom = false; } else { Zoom(); }
|
|
||||||
Zoom();
|
Zoom();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user