private void selectDialog() { int index = comboBoxDialog.SelectedIndex; if (index < 0 || index > Dialogs.Count) selectedDialog = null; else selectedDialog = Dialogs[index]; bindings.Target = selectedDialog; if (selectedDialog == null) this.comboBoxDialog.Text = ""; updateDialogName(); }
public Dialog AddDialog() { Dialog dialog = new Dialog(this); Dialogs.Add(dialog); return dialog; }