コード例 #1
0
        private void label10_Click(object sender, EventArgs e)
        {
            Hide();
            ClientClass obj = new ClientClass();

            obj.whoLoggedIn = this.whoLoggedIn;
            obj.Show();
        }
コード例 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Hide();
            ClientClass clObj = new ClientClass();

            clObj.whoLoggedIn = this.whoLoggedIn;
            clObj.Show();
        }
コード例 #3
0
        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();
        }