コード例 #1
0
 // This method calling the main dashborad load profile method
 public void InvokeCustomer(object sender, EventArgs e)
 {
     this.Invoke(new MethodInvoker(delegate()
     {
         UserDashborad myParent = (UserDashborad)this.Owner;
         myParent.customer_Click(sender, e);
         this.Dispose();
     }));
 }
コード例 #2
0
 // This method calling the main dashborad load profile method
 public void InvokeProfile()
 {
     this.Invoke(new MethodInvoker(delegate()
     {
         UserDashborad myParent = (UserDashborad)this.Owner;
         myParent.profileLoad();
         this.Dispose();
     }));
 }
コード例 #3
0
 // This method calling the main dashborad load profile method
 public void InvokeProfile(object sender, DoWorkEventArgs e)
 {
     this.Invoke(new MethodInvoker(delegate()
     {
         UserDashborad myParent = (UserDashborad)this.Owner;
         myParent.Dashboard_Click(sender, e);
         this.Dispose();
     }));
 }
コード例 #4
0
ファイル: FoodForm.cs プロジェクト: vsurwshe/CloudDesktopApp
 // This method calling the main dashborad load profile method
 public void InvokeCustomer(object sender, EventArgs e)
 {
     this.Invoke(new MethodInvoker(delegate()
     {
         if (this.Owner.Equals("UserDashborad"))
         {
             UserDashborad myParent = (UserDashborad)this.Owner;
             myParent.Food_Click(sender, e);
         }
         this.Dispose();
     }));
 }