예제 #1
0
        private void tsbtnCategoryAdd_Click(object sender, EventArgs e)
        {
            FrmCategory frm = new FrmCategory();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                loadCategory();
            }
        }
예제 #2
0
 private void tsbtnCategoryEdit_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode != null)
     {
         //todo
         //弹出一个新窗体进行编辑(和添加窗体界面。)
         FrmCategory frm = new FrmCategory(treeView1.SelectedNode.Tag);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             loadCategory();
         }
     }
 }