Beispiel #1
0
        private void OnClear(object sender, RoutedEventArgs e)
        {
            CombinedTransformationTreeEditorItem page = (CombinedTransformationTreeEditorItem)getCombineTransformationTreeEditor().getActivePage();

            if (page == null)
            {
                return;
            }
            List <int>      listTreeToClear = page.EditedObject.getTransformationTreesOids();
            TableActionData tableActionData = new TableActionData();

            tableActionData.oids.AddRange(listTreeToClear);

            GetCombineTransformationTreeService().TransformationTreeService.ClearTreeHandler += updateClearProgress;
            GetCombineTransformationTreeService().TransformationTreeService.ClearTree(tableActionData);
            Mask(true, RunMessageUtil.getMaskStartText(true));
        }
Beispiel #2
0
        private void OnRun(object sender, System.Windows.RoutedEventArgs e)
        {
            if (this.GetBrowser().Form.Grid.SelectedItems.Count == 0)
            {
                return;
            }

            List <int> listTreeToRun = new List <int>(0);

            foreach (object obj in this.GetBrowser().Form.Grid.SelectedItems)
            {
                int oid = ((BrowserData)obj).oid;
                listTreeToRun.AddRange(GetCombineTransformationTreeService().getByOid(oid).getTransformationTreesOids());
            }

            GetCombineTransformationTreeService().TransformationTreeService.RunHandler += updateRunProgress;
            GetCombineTransformationTreeService().TransformationTreeService.Run(listTreeToRun, true);
            Mask(true, RunMessageUtil.getMaskStartText());
        }
Beispiel #3
0
        private void OnRun(object sender, RoutedEventArgs e)
        {
            CombinedTransformationTreeEditorItem page = (CombinedTransformationTreeEditorItem)getCombineTransformationTreeEditor().getActivePage();

            if (page == null)
            {
                return;
            }
            if (!this.IsModify)
            {
                if (Save(getCombineTransformationTreeEditor().getActivePage()) == OperationState.STOP)
                {
                    return;
                }
            }
            List <int> listTreeToRun = page.EditedObject.getTransformationTreesOids();

            GetCombineTransformationTreeService().TransformationTreeService.RunHandler        += updateRunProgress;
            GetCombineTransformationTreeService().TransformationTreeService.PowerpointHandler += loadPowerpoint;
            GetCombineTransformationTreeService().TransformationTreeService.Run(listTreeToRun, true);
            Mask(true, RunMessageUtil.getMaskStartText(), true);
        }