Inheritance: System.Windows.Forms.Form
示例#1
0
 public static void Hide()
 {
     _syncContext.Post(delegate(object state)
     {
         LogDisplayForm.HideForm();
     }, null);
 }
示例#2
0
 public static void Show()
 {
     _syncContext.Post(delegate(object state)
     {
         LogDisplayForm.ShowForm();
     }, null);
 }
示例#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 !?
 }
示例#4
0
 internal static void ShowForm()
 {
     if (_form == null)
     {
         _form = new LogDisplayForm();
     }
     
     if (_form.Visible == false)
     {
         _form.Show(null);
         // SetFocus(ExcelDnaUtil.WindowHandle);
     }
 }
示例#5
0
        internal static void ShowForm()
        {
            if (_form == null)
            {
                _form = new LogDisplayForm();
            }

            if (_form.Visible == false)
            {
                _form.Show(null);
                // SetFocus(ExcelDnaUtil.WindowHandle);
            }
        }
示例#6
0
 public static void Show()
 {
     lock (SyncRoot)
     {
         if (!IsFormVisible)
         {
             _syncContext.Post(delegate(object state)
             {
                 LogDisplayForm.ShowForm();
             }, null);
             IsFormVisible = true;
         }
     }
 }
示例#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 !?
 }
示例#8
0
 static void logDisplayForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     logDisplayForm = null;
 }