private void label10_Click(object sender, EventArgs e) { Hide(); ClientClass obj = new ClientClass(); obj.whoLoggedIn = this.whoLoggedIn; obj.Show(); }
private void button3_Click(object sender, EventArgs e) { Hide(); ClientClass clObj = new ClientClass(); clObj.whoLoggedIn = this.whoLoggedIn; clObj.Show(); }
private void button1_Click(object sender, EventArgs e) { ///delete client string fullName = textBox1.Text; Client dltClient = db.Clients.SingleOrDefault(x => x.buyer_name == fullName); db.Clients.DeleteOnSubmit(dltClient); db.SubmitChanges(); MessageBox.Show("Client Deleted"); //opening this window by refershing again Hide(); ClientClass cObj = new ClientClass(); cObj.whoLoggedIn = this.whoLoggedIn; cObj.Show(); }