/// <summary> /// Creates a new class object from Project class and calls method getProjectsDataSet() to populate DataSet in this class (ds_Project). /// </summary> private void fillKristalDataSet() { Kristal kristal = new Kristal(); //var kristal = new Kristal(); ds_Kristal = kristal.getKristalDataSet(); }
private bool addKristalProject() { string ProjectNumber = cb_pNumberValue.Text; Kristal kristal = new Kristal(); return(kristal.insertProjectKristal(ProjectNumber, kristalRef)); }
private void dgv_KristalList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int r = e.RowIndex; if (r > -1) { try { Kristal kristal = new Kristal(); mdl_Kristal mdl_Kristal = new mdl_Kristal(); mdl_Kristal = kristal.fetchCurrentKristal(Convert.ToInt32(dgv_KristalList.Rows[r].Cells["Kristal Ref"].Value)); frm_Kristal Kristal = new frm_Kristal(mdl_Kristal); Kristal.Show(); } catch (Exception ex) { MessageBox.Show("Please double click on a data row to see Kristal details." + Environment.NewLine + ex.Message); } } }