示例#1
0
        private void AddData()
        {
            AddProductForm addProduct = new AddProductForm();

            addProduct.ShowDialog();
            LoadData();
        }
示例#2
0
        private void dataGrid_CellDoubleClick2(object sender, DataGridViewCellEventArgs e)
        {
            int            index      = dataGrid.SelectedRows[0].Index;
            Product        temp       = sql.findProduct(Int32.Parse(dataGrid.Rows[index].Cells[0].Value.ToString()));
            AddProductForm addProduct = new AddProductForm();

            addProduct.changeProduct(temp);
            LoadData();
        }
示例#3
0
        private void EditData()
        {
            int            index      = dataGrid.SelectedRows[0].Index;
            Product        temp       = sql.findProduct(Int32.Parse(dataGrid.Rows[index].Cells[0].Value.ToString()));
            AddProductForm addProduct = new AddProductForm();

            addProduct.changeProduct(temp);
            LoadData();
        }
示例#4
0
        private void знайтиТоварToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int            index      = dataGrid.SelectedRows[0].Index;
            Product        temp       = sql.findProduct(Int32.Parse(dataGrid.Rows[index].Cells[1].Value.ToString()));
            AddProductForm addProduct = new AddProductForm();

            addProduct.viewProduct(temp);
            LoadData();
        }