コード例 #1
0
        public override void Redo()
        {
            AppService.Instance.UpdateAppProperties(m_appGuid, m_newApp);
            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid = m_appGuid;
            arg.Tag            = m_newApp;

            RaiseRedoDoneEvent(arg);
        }
コード例 #2
0
        public override void Redo()
        {
            SecurityEventService.Instance.UpdateSecurityEvent(m_newValue);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid = m_newValue.EventGuid;
            arg.Tag            = m_newValue.Name;
            RaiseRedoDoneEvent(arg);
        }
コード例 #3
0
        public override void Undo()
        {
            SecurityEventService.Instance.AddSecurityEvent((SecurityEvent)m_initData.Clone());

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid = m_initData.EventGuid;
            arg.Tag            = m_initData.Name;
            RaiseUndoDoneEvent(arg);
        }
コード例 #4
0
        public override void Redo()
        {
            SecurityEventService.Instance.DeleteSecurityEvent(m_initData.EventGuid);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid = m_initData.EventGuid;
            arg.Tag            = m_initData.Name;
            RaiseRedoDoneEvent(arg);
        }
コード例 #5
0
        public override void Undo()
        {
            AppService.Instance.AddApp(m_newData);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid = m_newData.AppGUID;
            arg.Tag            = m_newData;
            RaiseUndoDoneEvent(arg);
        }
コード例 #6
0
        public override void Redo()
        {
            AppService.Instance.AddApp(m_newData);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.Tag = m_newData;

            RaiseRedoDoneEvent(arg);
        }
コード例 #7
0
        public override void Undo()
        {
            AppService.Instance.AddTableItems(m_appGuid, m_tableGuid, m_columns);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_appGuid;
            arg.SecondLevelGuid = m_tableGuid;
            arg.Tag             = m_columns;
            RaiseUndoDoneEvent(arg);
        }
コード例 #8
0
        public override void Undo()
        {
            AppService.Instance.RemoveTable(m_appGuid, m_newData.GUID);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_appGuid;
            arg.SecondLevelGuid = m_newData.GUID;
            arg.Tag             = m_newData.Name;
            RaiseUndoDoneEvent(arg);
        }
コード例 #9
0
        public override void Redo()
        {
            AppService.Instance.ReNameTable(m_appGuid, m_tableGuid, m_newName);
            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_appGuid;
            arg.SecondLevelGuid = m_tableGuid;
            arg.Tag             = m_newName;

            RaiseRedoDoneEvent(arg);
        }
コード例 #10
0
        public override void Undo()
        {
            AppService.Instance.UpdateTableItemValue(m_appGuid, m_tableGuid, m_oldValue);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_appGuid;
            arg.SecondLevelGuid = m_tableGuid;
            arg.Tag             = m_oldValue;
            RaiseUndoDoneEvent(arg);
        }
コード例 #11
0
        public override void Redo()
        {
            SecurityEventService.Instance.DeleteSecurityAction(m_eventGuid, m_action.ActionGuid);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_eventGuid;
            arg.SecondLevelGuid = m_action.ActionGuid;
            arg.Tag             = m_action.Name;

            RaiseUndoDoneEvent(arg);
        }
コード例 #12
0
        public override void Redo()
        {
            SecurityEventService.Instance.UpdateSecurityActionProperties(m_eventGuid, m_newValue);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_eventGuid;
            arg.SecondLevelGuid = m_newValue.ActionGuid;
            arg.Tag             = m_newValue.Name;

            RaiseRedoDoneEvent(arg);
        }
コード例 #13
0
        public override void Redo()
        {
            SecurityEventService.Instance.AddSecurityCondition(m_eventGuid, m_actionGuid,
                                                               (SecurityCondition)m_condition.Clone());

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_eventGuid;
            arg.SecondLevelGuid = m_actionGuid;
            arg.Tag             = m_condition;

            RaiseRedoDoneEvent(arg);
        }
コード例 #14
0
        public override void Undo()
        {
            AppService.Instance.ExchangeTableItemsSequence(m_appGuid, m_tableGuid, m_secondIndex, m_firstIndex);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_appGuid;
            arg.SecondLevelGuid = m_tableGuid;

            List <int> lstSeq = new List <int>();

            lstSeq.Add(m_secondIndex);
            lstSeq.Add(m_firstIndex);
            arg.Tag = lstSeq;
            RaiseUndoDoneEvent(arg);
        }
コード例 #15
0
        public override void Undo()
        {
            List <string> lstGuids = new List <string>();

            foreach (SecurityCondition sc in m_conditions)
            {
                SecurityEventService.Instance.AddSecurityCondition(m_eventGuid, m_actionGuid, (SecurityCondition)sc.Clone());
                lstGuids.Add(sc.ConditionGuid);
            }

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_eventGuid;
            arg.SecondLevelGuid = m_actionGuid;
            arg.Tag             = m_conditions;

            RaiseUndoDoneEvent(arg);
        }
コード例 #16
0
        public override void Undo()
        {
            List <int> lstIndexes = new List <int>();

            for (int i = 0; i < m_columns.Count; i++)
            {
                lstIndexes.Add(m_columns[i].LogColumnIndex);
            }

            AppService.Instance.RemoveTableItems(m_appGuid, m_tableGuid, lstIndexes);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_appGuid;
            arg.SecondLevelGuid = m_tableGuid;
            arg.Tag             = m_columns;
            RaiseUndoDoneEvent(arg);
        }
コード例 #17
0
        public override void Redo()
        {
            List <string> lstConditions = new List <string>();

            foreach (SecurityCondition sc in m_conditions)
            {
                lstConditions.Add(sc.ConditionGuid);
            }

            SecurityEventService.Instance.DeleteSecurityConditions(m_eventGuid, m_actionGuid, lstConditions);

            UndoRedoEventArg arg = new UndoRedoEventArg();

            arg.FirstLevelGuid  = m_eventGuid;
            arg.SecondLevelGuid = m_actionGuid;
            arg.Tag             = lstConditions;

            RaiseRedoDoneEvent(arg);
        }
コード例 #18
0
 private void RefreshTableNodeName(UndoRedoEventArg e)
 {
     RefreshTableNodeName(e.FirstLevelGuid, e.SecondLevelGuid, Convert.ToString(e.Tag));
 }
コード例 #19
0
 private void AddTable2Tree(UndoRedoEventArg e)
 {
     AddTable2Tree(e.FirstLevelGuid, e.SecondLevelGuid, Convert.ToString(e.Tag));
 }
コード例 #20
0
 private void RemoveAppFromTree(UndoRedoEventArg e)
 {
     RemoveAppFromTree((LogApp)e.Tag);
 }
コード例 #21
0
        private void RefreshAppNodeName(UndoRedoEventArg e)
        {
            LogAppMemento memento = (LogAppMemento)e.Tag;

            RefreshAppNodeName(e.FirstLevelGuid, memento.LogAppName);
        }
コード例 #22
0
 private void AddApp2Tree(UndoRedoEventArg e)
 {
     AddApp2Tree((LogApp)e.Tag);
 }
コード例 #23
0
        private void UndoRedoExchangeDateGridRow(UndoRedoEventArg arg)
        {
            List <int> lstSeq = (List <int>)arg.Tag;

            ExchangeDateGridRow(lstSeq[0], lstSeq[1]);
        }
コード例 #24
0
 private void RemoveTableFromTree(UndoRedoEventArg e)
 {
     RemoveTableFromTree(e.FirstLevelGuid, e.SecondLevelGuid);
 }
コード例 #25
0
 private void UpdateGridViewContent(UndoRedoEventArg arg)
 {
     UpdateGridViewContent((LogTableItem)arg.Tag);
 }
コード例 #26
0
 private void RemoveTableRows(UndoRedoEventArg e)
 {
     RemoveTableRows((List <LogTableItem>)e.Tag);
 }
コード例 #27
0
ファイル: frmEditRules.cs プロジェクト: guochao2299/LogManage
 private void RemoveConditon(UndoRedoEventArg e)
 {
     RemoveConditon(e.FirstLevelGuid, e.SecondLevelGuid, Convert.ToString(e.Tag));
 }
コード例 #28
0
 private void AddTableRows(UndoRedoEventArg e)
 {
     AddTableRows((List <LogTableItem>)e.Tag);
 }
コード例 #29
0
 private void UndoRedoImportTables(UndoRedoEventArg arg)
 {
     InitTree();
 }
コード例 #30
0
ファイル: frmEditRules.cs プロジェクト: guochao2299/LogManage
 private void RemoveConditons(UndoRedoEventArg e)
 {
     RemoveConditons(e.FirstLevelGuid, e.SecondLevelGuid, (List <string>)e.Tag);
 }