示例#1
0
 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();
 }
示例#2
0
 public Dialog AddDialog()
 {
     Dialog dialog = new Dialog(this);
     Dialogs.Add(dialog);
     return dialog;
 }