Esempio n. 1
0
 public void WdVisible(bool flg)
 {
     if (this.InvokeRequired)
     {
         WdVisibleCallback d = new WdVisibleCallback(WdVisible);
         this.Invoke(d, new object[] { flg });
     }
     else
     {
         this.Visible = flg;
     }
 }
Esempio n. 2
0
 public void WdVisible(bool flg)                 // Since Visible exists, it was referred to as WdVisible.
 {
     if (this.InvokeRequired)
     {
         WdVisibleCallback d = new WdVisibleCallback(WdVisible);
         this.Invoke(d, new object[] { flg });
     }
     else
     {
         this.Visible = flg;
     }
 }
Esempio n. 3
0
 public void WdVisible(bool flg)
 {
     System.Windows.Forms.ToolStrip toolStrip = this.GetCurrentParent();
     if (toolStrip.InvokeRequired)
     {
         WdVisibleCallback d = new WdVisibleCallback(WdVisible);
         toolStrip.Invoke(d, new object[] { flg });
     }
     else
     {
         this.Visible = flg;
     }
 }