Beispiel #1
0
 void HideThisForm()
 {
     if (this.InvokeRequired)
     {
         var d = new FormCallback(HideThisForm);
         this.Invoke(d);
     }
     else
     {
         this.Hide();
     }
 }
Beispiel #2
0
 private void SetFormTitle()
 {
     if (InvokeRequired)
     {
         FormCallback call = new FormCallback(SetFormTitle);
         Invoke(call);
     }
     else
     {
         gbSetFormTitleInProgress = true;
         string sTitle = gsTitle;
         if (gbPutMessageToWindowsTitle && gsProgressText != null)
         {
             sTitle += " - " + gsProgressText;
         }
         Text = sTitle;
         gbSetFormTitleInProgress = false;
     }
 }
Beispiel #3
0
 public SayingsShowForm(FormCallback formCallback, SayingsModel sayings)
 {
     _callback = formCallback;
     _sayings  = sayings;
     InitializeComponent();
 }
Beispiel #4
0
 private void SetFormTitle()
 {
     if (InvokeRequired)
     {
         FormCallback call = new FormCallback(SetFormTitle);
         Invoke(call);
     }
     else
     {
         gbSetFormTitleInProgress = true;
         string sTitle = gsTitle;
         if (gbPutMessageToWindowsTitle && gsProgressText != null) sTitle += " - " + gsProgressText;
         Text = sTitle;
         gbSetFormTitleInProgress = false;
     }
 }
Beispiel #5
0
 public SayingsEditForm(FormCallback formCallback)
 {
     _formCallback = formCallback;
     InitializeComponent();
 }