Exemplo n.º 1
0
 public void FrameForm_Create()
 {
     Screen sec = Screen.AllScreens.FirstOrDefault(s => s != Screen.PrimaryScreen) ?? null;
     if (this.frm_frame == null && sec != null)
     {
         this.frm_frame = new FrameForm(sec);
         this.frm_frame.FormClosed += FrameForm_Closed;
         this.mi_frameCtrl.Text = "Close";
         this.frm_frame.Show();
     }
 }
Exemplo n.º 2
0
 public void FrameForm_Closed(object sender, EventArgs evntArgs)
 {
     this.frm_frame.Dispose();
     this.frm_frame = null;
     this.mi_frameCtrl.Text = "Open";
 }