private void _dgvSsDTP_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { Mark mark = GetMark(); SsDTP ssDTP = SsDTPList.getInstance().getItem(mark); SsDTP_AddEdit aessDTP = new SsDTP_AddEdit(ssDTP); if (aessDTP.ShowDialog() == System.Windows.Forms.DialogResult.OK) { loadData(); } }
private void btnAdd_Click(object sender, EventArgs e) { SsDTPList ssDTPs = SsDTPList.getInstance(); SsDTP ssDTP = new SsDTP(); SsDTP_AddEdit aessDTP = new SsDTP_AddEdit(ssDTP); if (aessDTP.ShowDialog() == System.Windows.Forms.DialogResult.OK) { ssDTPs.Add(ssDTP); loadData(); } }