Ejemplo n.º 1
0
        public void MakeSearchOptionForm()
        {
            Point location = new Point(Screen.PrimaryScreen.Bounds.Width - 400, Screen.PrimaryScreen.Bounds.Height - 320);

            if (MyRemoteController != null)
            {
                location = MyRemoteController.Location;
            }

            if (MySearchOptionForm == null)
            {
                MySearchOptionForm               = new SearchOptionForm();
                MySearchOptionForm.Name          = "SearchOptionForm";
                MySearchOptionForm.StartPosition = FormStartPosition.Manual;
                MySearchOptionForm.Location      = location;
                MyRemoteController.InstanceRef   = MyMainForm;
                MySearchOptionForm.Show();
            }
            else
            {
                MySearchOptionForm.Location = location;
                MySearchOptionForm.Activate();
                MySearchOptionForm.Show();
            }
        }
Ejemplo n.º 2
0
 public void DestorySearchOptionForm()
 {
     MySearchOptionForm = null;
 }