Пример #1
0
        //category
        public virtual CategoryForm getCategoryForm(string categoryTableName, int mode, int id)
        {
            CategoryForm categoryForm = new CategoryForm(CategoryItemTypeConfs.CategoryItemType_ProductStainless, mode, id);

            appendEvent(categoryForm);
            return(categoryForm);
        }
Пример #2
0
 private void toolStripButton_editType_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode != null)
     {
         int          id   = int.Parse(treeView1.SelectedNode.Name);
         CategoryForm form = FormSingletonFactory.getInstance().getCategoryForm(conf.CategoryTableName, 1, id);
         form.updateNotify -= new UpdateNotify(form_updateNotify_category);
         form.updateNotify += new UpdateNotify(form_updateNotify_category);
         form.ShowDialog();
     }
     else
     {
         MessageBox.Show("请选择类别.", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }