private void button2_Click(object sender, EventArgs e) { Myserver.Repairer re = new Myserver.Repairer(); Myserver.Service1 server = new Myserver.Service1(); int id = int.Parse(txtrexist.Text); bool spec = true; re = server.Search_Repairer(id, spec); Utility.selected_repairer = re; if (comboBox1.Text == "Check Account") { frmadmin_checkAccountR frm = new frmadmin_checkAccountR(); this.Hide(); frm.Show(); } if (comboBox1.Text == "Delete Account") { server.del_repairer(id, spec); MessageBox.Show("Account Deleted!"); } if (comboBox1.Text == "Issue Warning") { MessageBox.Show("Warning Issued!"); } }
public void Repairer_NotBuzy([System.Xml.Serialization.XmlElementAttribute(IsNullable = true)] Repairer r, out bool Repairer_NotBuzyResult, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool Repairer_NotBuzyResultSpecified) { object[] results = this.Invoke("Repairer_NotBuzy", new object[] { r }); Repairer_NotBuzyResult = ((bool)(results[0])); Repairer_NotBuzyResultSpecified = ((bool)(results[1])); }
/// <remarks/> public void Repairer_NotBuzyAsync(Repairer r, object userState) { if ((this.Repairer_NotBuzyOperationCompleted == null)) { this.Repairer_NotBuzyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRepairer_NotBuzyOperationCompleted); } this.InvokeAsync("Repairer_NotBuzy", new object[] { r }, this.Repairer_NotBuzyOperationCompleted, userState); }
/// <remarks/> public void Repairer_NotBuzyAsync(Repairer r) { this.Repairer_NotBuzyAsync(r, null); }