private void button_addpersonel_Click(object sender, EventArgs e) { TeknikKartForm teknik = new TeknikKartForm(board.project); if (teknik.ShowDialog() == DialogResult.Cancel) { ClearAllCreatedButtons(); FillPanelsWithCards(board); } }
private void Card_MouseClick(object sender, MouseEventArgs e) { Button button = sender as Button; TeknikKartForm teknik = new TeknikKartForm(Convert.ToInt32(button.Name), board.project.personels); if (teknik.ShowDialog() == DialogResult.Cancel) { this.Show(); } }