private void PresenceButton_Click(object sender, EventArgs e) { if (dataGridView1.SelectedCells.Count != 0) { Presences prs = new Presences(Convert.ToInt32(dataGridView1.SelectedCells[0].Value)); prs.ShowDialog(); } }
private void AddButton_Click(object sender, EventArgs e) { DependencyFacade.InsertPresenceDate(secID); this.Hide(); Presences prs = new Presences(secID); prs.ShowDialog(); }