Exemplo n.º 1
0
 public static void showDialog(ActionDialog actionDialog)
 {
     if (previousActionDialog != null)
     {
         previousActionDialog.Hide();
     }
     previousActionDialog = actionDialog;
     actionDialog.Show();
 }
Exemplo n.º 2
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);
            }
        }