private void btnMoveToCategory_Click(object sender, EventArgs e) { using (CategorySelector dlg = new CategorySelector(ganjoorView.GetCurrentPoetID())) { if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { ganjoorView.MoveToCategory(dlg.SelectedCatID); } } }
private void btnSelectRandomCat_Click(object sender, EventArgs e) { using (CategorySelector dlg = new CategorySelector()) { dlg.CheckedCatsString = _RandomCatIDs; if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { _RandomCatIDs = dlg.CheckedCatsString; lblRandomCat.Text = RandomCatPath; } } }