Example #1
0
        private void pictureBox_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            PictureBox pictureBox = sender as PictureBox;
            Window     window     = WindowManager.getWindow(id);

            if (e.Button.CompareTo(MouseButtons.Left) == 0)
            {
                Parent.Hide();
                if (window != null)
                {
                    window.show();
                }
            }
            else if (e.Button.CompareTo(MouseButtons.Right) == 0)
            {
                ActionDialog actionDialog = new ActionDialog(Form1.backColor);
                ActionDialogManager.showDialog(actionDialog);
            }
        }
Example #2
0
 public void hide()
 {
     ActionDialogManager.hideAll();
     this.Hide();
     timer1.Stop();
 }