Ejemplo n.º 1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (SelectWarehouseInfomation != null)
     {
         WarehouseInformationController.CallAddEditForm(new AddWarehouseInformation(SelectWarehouseInfomation)); // call form as edit data form.
     }
 }
Ejemplo n.º 2
0
        private void dataGridWarehouseInfomation_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            SelectWarehouseInfomation = new WarehouseInformationModel();


            setWarehouseInformationModel(dataGridWarehouseInfomation.SelectedRows[0]);
            if (e.ColumnIndex == 0 && e.RowIndex >= 0)
            {
                WarehouseInformationController.CallAddEditForm(new AddWarehouseInformation(SelectWarehouseInfomation)); // call form as edit data form.
                ReloadDataGridView();                                                                                   // Reload data in datagridview
            }
        }
Ejemplo n.º 3
0
 //call form warehouseInfomation
 private void btnAddForm_Click(object sender, EventArgs e)
 {
     WarehouseInformationController.CallAddEditForm(new AddWarehouseInformation());  // call form as add data form.
     ReloadDataGridView();
 }