// 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(); })); }
// 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(); })); }
// 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(); })); }
// 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(); })); }