Пример #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            //string ConnectionString = @"Data Source=" + sPath + ";New=False;Version=3";
            var form = new FormAddJournalOperation();

            form.ShowDialog();
            String selectCommand = "Select idOperation, Type_operation, Sum_operation, Date_operation, Comment from Journal_Operation";

            selectTable(ConnectionString, selectCommand);
        }
Пример #2
0
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            //  string ConnectionString = @"Data Source=" + sPath + ";New=False;Version=3";
            var form       = new FormAddJournalOperation();
            int CurrentRow = dataGridView1.SelectedCells[0].RowIndex;

            form.Id = Convert.ToInt32(dataGridView1[0, CurrentRow].Value);
            form.ShowDialog();
            String selectCommand = "Select idOperation, Type_operation, Sum_operation, Date_operation, Comment from Journal_Operation";

            selectTable(ConnectionString, selectCommand);
        }