Inheritance: System.Windows.Forms.Form
Example #1
0
 public static void Hide()
 {
     _syncContext.Post(delegate(object state)
     {
         LogDisplayForm.HideForm();
     }, null);
 }
Example #2
0
 public static void Show()
 {
     _syncContext.Post(delegate(object state)
     {
         LogDisplayForm.ShowForm();
     }, null);
 }
Example #3
0
 private void LogDisplayForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _form.updateTimer.Enabled = false;
     _form = null;
     LogDisplay.IsFormVisible = false;
     try
     {
         SetFocus(ExcelDnaUtil.WindowHandle);
     }
     catch { }   // Probably not in Excel !?
 }
Example #4
0
 internal static void ShowForm()
 {
     if (_form == null)
     {
         _form = new LogDisplayForm();
     }
     
     if (_form.Visible == false)
     {
         _form.Show(null);
         // SetFocus(ExcelDnaUtil.WindowHandle);
     }
 }
Example #5
0
        internal static void ShowForm()
        {
            if (_form == null)
            {
                _form = new LogDisplayForm();
            }

            if (_form.Visible == false)
            {
                _form.Show(null);
                // SetFocus(ExcelDnaUtil.WindowHandle);
            }
        }
Example #6
0
 public static void Show()
 {
     lock (SyncRoot)
     {
         if (!IsFormVisible)
         {
             _syncContext.Post(delegate(object state)
             {
                 LogDisplayForm.ShowForm();
             }, null);
             IsFormVisible = true;
         }
     }
 }
Example #7
0
 private void LogDisplayForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _form.updateTimer.Enabled = false;
     _form = null;
     LogDisplay.IsFormVisible = false;
     try
     {
         SetFocus(ExcelDnaUtil.WindowHandle);
     }
     catch { }   // Probably not in Excel !?
 }
Example #8
0
 static void logDisplayForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     logDisplayForm = null;
 }