private void CatBtn_Click(object sender, EventArgs e) { CategoryListForm dlg = new CategoryListForm(fData.Categories); if (dlg.ShowDialog() == DialogResult.OK) { fData.Categories = dlg.Categories; update_cats(); } }
private void CatBtn_Click(object sender, EventArgs e) { CategoryListForm categoryListForm = new CategoryListForm(this.fData.Categories); if (categoryListForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.fData.Categories = categoryListForm.Categories; this.update_cats(); } }