示例#1
0
 public override void OnClick()
 {
     if (m_Hook.RoleTree.SelectedNode != null)
     {
         Exception eError;
         Role      role = m_Hook.RoleTree.SelectedNode.Tag as Role;
         if (role == null)
         {
             return;
         }
         AddGroup frmGroup = new AddGroup(role);
         if (frmGroup.ShowDialog() == DialogResult.OK)
         {
             if (this.WriteLog)
             {
                 Fan.Plugin.LogTable.Writelog(Caption);//xisheng 2011.07.09 增加日志
             }
             ModuleOperator.DisplayRoleTree("", m_Hook.RoleTree, ref ModData.gisDb, out eError);
             if (eError != null)
             {
                 ErrorHandle.ShowFrmErrorHandle("提示", eError.Message);
             }
         }
     }
 }
示例#2
0
        public override void OnClick()
        {
            Exception eError;
            AddGroup  frmGroup = new AddGroup();

            if (this.WriteLog)
            {
                Fan.Plugin.LogTable.Writelog(Caption);//xisheng 2011.07.09 增加日志
            }
            if (frmGroup.ShowDialog() == DialogResult.OK)
            {
                ModuleOperator.DisplayRoleTree("", m_Hook.RoleTree, ref ModData.gisDb, out eError);
                if (eError != null)
                {
                    ErrorHandle.ShowInform("提示", eError.Message);
                    return;
                }
            }
        }