Beispiel #1
0
        private void CardAddButton_Click_1(object sender, EventArgs e)
        {
            CardForm form = new CardForm();

            form.FormClosed += new FormClosedEventHandler(this.OnFormClose);
            form.Show();
        }
Beispiel #2
0
        private void cardEditButton_Click(object sender, EventArgs e)
        {
            int index = cardsDataGridView.SelectedCells.Count > 0 ? cardsDataGridView.SelectedCells[0].RowIndex : -1;

            index = index != -1 ? Int32.Parse(cardsDataGridView.Rows[index].Cells[0].Value.ToString()) : 0;
            CardForm form = new CardForm(index);

            form.FormClosed += new FormClosedEventHandler(this.OnFormClose);
            form.Show();
        }