Esempio n. 1
0
        private void UpdateClientsInfoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClientDataBase child7 = new ClientDataBase();

            child7.MdiParent = this;
            child7.Show();
        }
Esempio n. 2
0
        private void BtnClientsList_Click(object sender, EventArgs e)
        {
            ClientDataBase cdb = new ClientDataBase();

            cdb.Show();
            this.Hide();
        }
Esempio n. 3
0
        private void ClientsDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClientDataBase child6 = new ClientDataBase();

            child6.MdiParent = this;
            conn             = new SqlConnection(conStrClients);
            conn.Open();
            string viewAll = "SELECT * FROM ClientTable";

            cmd = new SqlCommand(viewAll, conn);
            adp = new SqlDataAdapter();

            adp.SelectCommand = cmd;
            adp.Fill(ds, "ClientTable");

            child6.dataGridView1.DataSource = ds;
            child6.dataGridView1.DataMember = "ClientTable";
            conn.Close();
            child6.Show();
        }