Ejemplo n.º 1
0
        //添加
        private void button_AddConfig_Click(object sender, EventArgs e)
        {
            FormAddModifyConfig add = new FormAddModifyConfig();

            add.Tag = currentUser.CustomerID;
            if (add.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadConfigToDataView();//刷新缓存数据
            }
        }
Ejemplo n.º 2
0
        void ModifyConfig()
        {
            int id = GetConfigID();

            if (id == 0)
            {
                MessageBox.Show("请选择一条数据再修改!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            Base_OriginalConfigManage bm = ManageSpace.Manage.Get_Base_OriginalConfigManageByOriginal_Id(id);

            FormAddModifyConfig add = new FormAddModifyConfig(bm);

            add.Tag = currentUser.CustomerID;
            if (add.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                LoadConfigToDataView();//刷新缓存数据
            }
        }