Beispiel #1
0
        private void BtnOrderList_Click(object sender, EventArgs e)
        {
            UpdateStock us = new UpdateStock();

            us.Show();
            this.Hide();
        }
Beispiel #2
0
        private void UpdateStockOrderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UpdateStock child5 = new UpdateStock();

            child5.MdiParent = this;
            child5.Show();
        }
Beispiel #3
0
        private void StockDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UpdateStock child6 = new UpdateStock();

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

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

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

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