Ejemplo n.º 1
0
 private void dgMaterials_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgMaterials.SelectedRows.Count != 0)
     {
         try
         {
             DBConnector   db = new DBConnector();
             Material      m  = db.SearchMaterial("id", dgMaterials.SelectedRows[0].Cells[0].Value.ToString(), false)[0];
             FormMaterials f  = new FormMaterials();
             f.EditingMode(m);
             f.ShowDialog();
             //UpdateEmployeeList();
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
             //throw;
         }
     }
 }
Ejemplo n.º 2
0
        //======================================================================//
        //=======================  MATERIALS ===================================//
        //======================================================================//
        private void btnAddMaterial_Click(object sender, EventArgs e)
        {
            FormMaterials f = new FormMaterials();

            f.ShowDialog();
        }