void friendListBox1_ChangeCatalogNameClicked(string catalogName) { EditCatelogNameForm form = new EditCatelogNameForm(catalogName); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.friendListBox1.ChangeCatelogName(catalogName, form.NewName); } }
void friendListBox1_AddCatalogClicked() { EditCatelogNameForm form = new EditCatelogNameForm(); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.friendListBox1.AddCatalog(form.NewName); } }