示例#1
0
 private void frmCurveProcessorArgEditor_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (_3bandViewer != null)
     {
         (_3bandViewer as Form).Close();
         _3bandViewer = null;
     }
 }
 private void frmCurveProcessorArgEditor_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (DialogResult != System.Windows.Forms.DialogResult.OK)
     {
         if (_argEditorCancelClick != null && !Modal)
         {
             _argEditorCancelClick(this, _arg);
         }
     }
     if (_3bandViewer != null)
     {
         (_3bandViewer as Form).Close();
         _3bandViewer = null;
     }
     if (_env.CanvasRefreshSubscribers.Contains(_refreshSubscriber))
     {
         _env.CanvasRefreshSubscribers.Remove(_refreshSubscriber);
     }
 }
 private void threeBandViewer_CheckedChanged(object sender, EventArgs e)
 {
     if (ck3BandView.Checked)
     {
         if (_3bandViewer == null)
         {
             _3bandViewer = new frm3BandViewer();
         }
         _3bandViewer.Owner    = this;
         _3bandViewer.Location = new Point(this.Location.X + this.Width, this.Location.Y);
         _3bandViewer.Show();
         _3bandViewer.UpdateView();
         _3bandViewer.FormClosed += new FormClosedEventHandler(_3bandViewer_FormClosed);
     }
     else
     {
         (_3bandViewer as frm3BandViewer).Close();
         _3bandViewer = null;
     }
 }
示例#4
0
 void _3bandViewer_FormClosed(object sender, FormClosedEventArgs e)
 {
     _3bandViewer        = null;
     ck3BandView.Checked = false;
 }