private void Form1_Load(object sender, EventArgs e) { conn = new SQLiteConnection("Data Source = C:\\myCsv\\dbfiles\\payed.db; Version = 3; Password = 123456;"); conn.Open(); getDB_Date(1); populatePrintViedDG(); printViewGrid.Columns[6].Visible = false; printViewGrid.Columns[0].Visible = false; if (printViewGrid.RowCount != 0) { printViewGrid.FirstDisplayedScrollingRowIndex = printViewGrid.RowCount - 1; } AdminChangeForm form = new AdminChangeForm(); form.ShowDialog(); displayTime(1); populatePayedDG(); }
private void endShiftButton_Click(object sender, EventArgs e) { AdminChangeForm form = new AdminChangeForm(); form.ShowDialog(); }