private void button4_Click(object sender, EventArgs e) { Tool SelectedTool = null; if (SelectedUdlejning != null) { SelectedTool = SelectedUdlejning.Tool; } Retur MyDialog = new Retur(memberDropDown1.SelectedMember, SelectedTool); if (MyDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { ShowUdlejninger(); } }
private void button4_Click(object sender, EventArgs e) { Tool SelectedTool = null; if (SelectedUdlejning != null) SelectedTool = SelectedUdlejning.Tool; Retur MyDialog = new Retur(memberDropDown1.SelectedMember, SelectedTool); if (MyDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) ShowUdlejninger(); }