Beispiel #1
0
        public void ShowSharpener()
        {
            if (sharpener == null)
            {
                sharpener            = new Sharpener(this);
                sharpener.Destroyed += HandleLoupeDestroy;
            }

            sharpener.Show();
        }
Beispiel #2
0
        private void HandleLoupeDestroy(object sender, EventArgs args)
        {
            if (sender == loupe)
            {
                loupe = null;
            }

            if (sender == sharpener)
            {
                sharpener = null;
            }
        }
Beispiel #3
0
 public void ShowHideLoupe()
 {
     if (loupe == null)
     {
         loupe            = new Loupe(this);
         loupe.Destroyed += HandleLoupeDestroy;
         loupe.Show();
     }
     else
     {
         loupe.Destroy();
     }
 }
Beispiel #4
0
        private void HandleLoupeDestroy(object sender, EventArgs args)
        {
            if (sender == loupe)
                loupe = null;

            if (sender == sharpener)
                sharpener = null;
        }
Beispiel #5
0
        public void ShowSharpener()
        {
            if (sharpener == null) {
                sharpener = new Sharpener (this);
                sharpener.Destroyed += HandleLoupeDestroy;
            }

            sharpener.Show ();
        }
Beispiel #6
0
 public void ShowHideLoupe()
 {
     if (loupe == null) {
         loupe = new Loupe (this);
         loupe.Destroyed += HandleLoupeDestroy;
         loupe.Show ();
     } else {
         loupe.Destroy ();
     }
 }