public MainForm() { InitializeComponent(); _listBoxs = new List <ListBox>(GetControl <ListBox>(this)); _childForm = null; _childFormModal = null; }
private void buttonShowModal_Click(object sender, EventArgs e) { if (_childFormModal == null) { _childFormModal = new ChildFormModal(this); } var result = _childFormModal.ShowDialog(this); AddToListBoxCallback(new AddToListBoxParam(listBox11, $"result = {result}")); }