public AddDialog(MainWindow parent)
        {
            this.parent = parent;
            InitializeComponent();

            typeComboBox.Items.AddRange(new object[] {
                "SampleBot.SampleBot",
            });

            if (typeComboBox.Items.Count > 0)
                typeComboBox.SelectedItem = "SampleBot.SampleBot";
        }
 private void AddDialog_FormClosed(object sender, FormClosedEventArgs e)
 {
     parent = null;
 }