Esempio n. 1
0
        /// <summary>
        /// Push a request in right custom output
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        public TContext Execute(ActionOrder order)
        {
            TContext context = null;

            if (!_dic.TryGetValue(order.Name, out ActionModel action))
            {
                throw new InvalidOperationException(order.Name);
            }

            order.ExecutedAt = ClockActionBus.Now();

            Stopwatch sp = new Stopwatch();

            try
            {
                sp.Start();
                context       = (TContext)action.Execute(this, order);
                order.Result  = context.Result;
                order.Success = true;
            }
            catch (Exception e)
            {
                context.Exception = e;
            }
            finally
            {
                sp.Stop();
                string key = string.Empty;
                Trace.WriteLine(new { Key = key, action.Name, ElapsedTime = sp.Elapsed }, ConstantsCore.PerfMon);
            }

            return(context);
        }
Esempio n. 2
0
        public void UnserializeTest()
        {
            var o = new ActionOrder()
            {
                Uuid       = Guid.NewGuid().ToString(),
                Name       = "actionTest",
                ExecutedAt = ClockActionBus.Now(),
                PushedAt   = ClockActionBus.Now(),
                Result     = "ok",
                Success    = false,
            }.Argument("arg1", "{ \"test\": \"ok\" }")
            ;

            var txt = o.ToString();
            var p   = ActionOrder.Unserialize(txt);

            Assert.AreEqual(o.ExecutedAt, p.ExecutedAt);
            Assert.AreEqual(o.Name, p.Name);
            Assert.AreEqual(o.PushedAt, p.PushedAt);
            Assert.AreEqual(o.Result, p.Result);
            Assert.AreEqual(o.Success, p.Success);
            Assert.AreEqual(o.Uuid, p.Uuid);

            Assert.AreEqual(o.Arguments.Count, 1);
            Assert.AreEqual(o.Arguments.Count, p.Arguments.Count);

            var txt2 = p.ToString();
            var q    = ActionOrder.Unserialize(txt2);

            Assert.AreEqual(p.Arguments["arg1"].Value, q.Arguments["arg1"].Value);

            Assert.AreEqual(txt, txt2);
        }
Esempio n. 3
0
 public static ActionOrder getInstance()
 {
     if (instance == null)
     {
         instance = new ActionOrder();
     }
     return(instance);
 }
Esempio n. 4
0
 public Action(Player main)
 {
     this.Main    = main;
     this.console = GameObject.Find("ConsoleButtons").GetComponent <ConsoleButtons>();
     actionOrder  = ActionOrder.getInstance();
     gameManager  = GameManagerUtil.Instance.GameManager;
     simulator    = Simulator.getInstance();
 }
Esempio n. 5
0
        public void Post([FromBody] ActionOrder order)
        {
            //var order = ActionOrder.Unserialize(value);

            if (!this._repositories.Execute(order))
            {
                throw (Exception)order.Result;
            }
        }
 protected virtual void Start()
 {
     this.boxCollider     = base.GetComponent <BoxCollider2D>();
     this.rb2D            = base.GetComponent <Rigidbody2D>();
     this.inverseMoveTime = 1f / this.moveTime;
     actionOrder          = ActionOrder.getInstance();
     gameManager          = GameManagerUtil.Instance.GameManager;
     simulator            = Simulator.getInstance();
 }
Esempio n. 7
0
        private Task Callback(IBrokerContext context)
        {
            ActionOrder order = ActionOrder.Unserialize(context.Utf8Data);

            if (_actionRepositories.Execute(order))
            {
                string Result = string.Empty;
                switch (order.Name)
                {
                case "business1.PushScan":
                    Result = ((Guid)order.Result).ToString("B");
                    break;

                default:
                    Result.ToString();
                    break;
                }

                _acknowledgeQueue.Publish(
                    new
                {
                    Order = order,
                    order.ExecutedAt,
                    Result
                }
                    );

                context.Commit();
            }
            else
            {
                if (context.CanBeRequeued())
                {
                    context.RequeueLast();
                }

                else
                {
                    var Exception = order.Result as Exception;
                    _deadQueue.Publish(
                        new
                    {
                        Order = order,
                        order.ExecutedAt,
                        order.PushedAt,
                        Exception
                    }
                        );

                    context.Reject();
                }
            }

            return(Task.CompletedTask);
        }
Esempio n. 8
0
 public void ReadValues(Data data, string path)
 {
     AttachmentPage.ReadValues(data, path + @"AttachmentPage\");
     AutoSave.ReadValues(data, path + @"AutoSave\");
     BackgroundPage.ReadValues(data, path + @"BackgroundPage\");
     CoverPage.ReadValues(data, path + @"CoverPage\");
     CustomScript.ReadValues(data, path + @"CustomScript\");
     DropboxSettings.ReadValues(data, path + @"DropboxSettings\");
     EmailClientSettings.ReadValues(data, path + @"EmailClientSettings\");
     EmailSmtpSettings.ReadValues(data, path + @"EmailSmtpSettings\");
     ForwardToFurtherProfile.ReadValues(data, path + @"ForwardToFurtherProfile\");
     Ftp.ReadValues(data, path + @"Ftp\");
     Ghostscript.ReadValues(data, path + @"Ghostscript\");
     HttpSettings.ReadValues(data, path + @"HttpSettings\");
     JpegSettings.ReadValues(data, path + @"JpegSettings\");
     PdfSettings.ReadValues(data, path + @"PdfSettings\");
     PngSettings.ReadValues(data, path + @"PngSettings\");
     Printing.ReadValues(data, path + @"Printing\");
     Properties.ReadValues(data, path + @"Properties\");
     Scripting.ReadValues(data, path + @"Scripting\");
     Stamping.ReadValues(data, path + @"Stamping\");
     TextSettings.ReadValues(data, path + @"TextSettings\");
     TiffSettings.ReadValues(data, path + @"TiffSettings\");
     UserTokens.ReadValues(data, path + @"UserTokens\");
     Watermark.ReadValues(data, path + @"Watermark\");
     try{
         int numClasses = int.Parse(data.GetValue(@"" + path + @"ActionOrder\numClasses"));
         for (int i = 0; i < numClasses; i++)
         {
             try{
                 var value = Data.UnescapeString(data.GetValue(path + @"ActionOrder\" + i + @"\ActionOrder"));
                 ActionOrder.Add(value);
             }catch {}
         }
     }catch {}
     try { AuthorTemplate = Data.UnescapeString(data.GetValue(@"" + path + @"AuthorTemplate")); } catch { AuthorTemplate = "<PrintJobAuthor>"; }
     EnableWorkflowEditor = bool.TryParse(data.GetValue(@"" + path + @"EnableWorkflowEditor"), out var tmpEnableWorkflowEditor) ? tmpEnableWorkflowEditor : true;
     try { FileNameTemplate = Data.UnescapeString(data.GetValue(@"" + path + @"FileNameTemplate")); } catch { FileNameTemplate = "<Title>"; }
     try { Guid = Data.UnescapeString(data.GetValue(@"" + path + @"Guid")); } catch { Guid = ""; }
     try { KeywordTemplate = Data.UnescapeString(data.GetValue(@"" + path + @"KeywordTemplate")); } catch { KeywordTemplate = ""; }
     try { Name = Data.UnescapeString(data.GetValue(@"" + path + @"Name")); } catch { Name = "NewProfile"; }
     OpenViewer                 = bool.TryParse(data.GetValue(@"" + path + @"OpenViewer"), out var tmpOpenViewer) ? tmpOpenViewer : true;
     OpenWithPdfArchitect       = bool.TryParse(data.GetValue(@"" + path + @"OpenWithPdfArchitect"), out var tmpOpenWithPdfArchitect) ? tmpOpenWithPdfArchitect : true;
     OutputFormat               = Enum.TryParse <OutputFormat>(data.GetValue(@"" + path + @"OutputFormat"), out var tmpOutputFormat) ? tmpOutputFormat : OutputFormat.Pdf;
     SaveFileTemporary          = bool.TryParse(data.GetValue(@"" + path + @"SaveFileTemporary"), out var tmpSaveFileTemporary) ? tmpSaveFileTemporary : false;
     ShowAllNotifications       = bool.TryParse(data.GetValue(@"" + path + @"ShowAllNotifications"), out var tmpShowAllNotifications) ? tmpShowAllNotifications : true;
     ShowOnlyErrorNotifications = bool.TryParse(data.GetValue(@"" + path + @"ShowOnlyErrorNotifications"), out var tmpShowOnlyErrorNotifications) ? tmpShowOnlyErrorNotifications : false;
     ShowProgress               = bool.TryParse(data.GetValue(@"" + path + @"ShowProgress"), out var tmpShowProgress) ? tmpShowProgress : true;
     ShowQuickActions           = bool.TryParse(data.GetValue(@"" + path + @"ShowQuickActions"), out var tmpShowQuickActions) ? tmpShowQuickActions : true;
     SkipPrintDialog            = bool.TryParse(data.GetValue(@"" + path + @"SkipPrintDialog"), out var tmpSkipPrintDialog) ? tmpSkipPrintDialog : false;
     try { SubjectTemplate = Data.UnescapeString(data.GetValue(@"" + path + @"SubjectTemplate")); } catch { SubjectTemplate = ""; }
     try { TargetDirectory = Data.UnescapeString(data.GetValue(@"" + path + @"TargetDirectory")); } catch { TargetDirectory = ""; }
     try { TitleTemplate = Data.UnescapeString(data.GetValue(@"" + path + @"TitleTemplate")); } catch { TitleTemplate = "<PrintJobName>"; }
 }
        private void PaginationLoad(ActionOrder action)
        {
            switch (action)
            {
            case ActionOrder.Reload:
                var pagination = orderBus.getAll(OrderState.pagination.skip, OrderState.pagination.limit, text);
                OrderState.pagination.total = pagination.count;
                ReFillList(pagination.orders);
                CalPagination();
                break;

            default: break;
            }
        }
Esempio n. 10
0
        public static void CopyCardGameStateAndAction(
            CardGameState stateToCopy, out CardGameState stateToReturn,
            ActionOrder actionToCopy, out ActionOrder actionToReturn)
        {
            MemoryStream    stream    = new MemoryStream();
            BinaryFormatter formatter = new BinaryFormatter();

            // We need a dummy holder object to make sure that both the
            // state and action are serialised together so that any references
            // to the same object still point to the same new object after deserialisation.
            StateAndActionHolder holder = new StateAndActionHolder();

            holder.actionOrder   = actionToCopy;
            holder.cardGameState = stateToCopy;

            formatter.Serialize(stream, holder);
            stream.Seek(0, SeekOrigin.Begin);

            StateAndActionHolder holderCopy = (StateAndActionHolder)formatter.Deserialize(stream);

            actionToReturn = holderCopy.actionOrder;
            stateToReturn  = holderCopy.cardGameState;
        }
Esempio n. 11
0
        private List <ConstrucableTrigger> getActionTemplates()
        {
            List <ConstrucableTrigger> lst = new List <ConstrucableTrigger>();

            lst.Add(new ConstrucableTriggerTemplate("Center View", () => new ActionCenterView(new WeakParser(ActionCenterView.getComponents(), ActionCenterView.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Comment", () => new ActionComment(new WeakParser(ActionComment.getComponents(), ActionComment.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Create Unit", () => new ActionCreateUnit(new WeakParser(ActionCreateUnit.getComponents(), ActionCreateUnit.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Create Unit With Properties", () => new ActionCreateUnitWithProperties(new WeakParser(ActionCreateUnitWithProperties.getComponents(), ActionCreateUnitWithProperties.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Defeat", () => new ActionDefeat(new WeakParser(ActionDefeat.getComponents(), ActionDefeat.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Display Text Message", () => new ActionDisplayTextMessage(new WeakParser(ActionDisplayTextMessage.getComponents(), ActionDisplayTextMessage.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Draw", () => new ActionDraw(new WeakParser(ActionDraw.getComponents(), ActionDraw.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Give Units To Player", () => new ActionGiveUnitsToPlayer(new WeakParser(ActionGiveUnitsToPlayer.getComponents(), ActionGiveUnitsToPlayer.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Kill Unit", () => new ActionKillUnit(new WeakParser(ActionKillUnit.getComponents(), ActionKillUnit.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Kill Unit At Location", () => new ActionKillUnitAtLocation(new WeakParser(ActionKillUnitAtLocation.getComponents(), ActionKillUnitAtLocation.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Control At Location", () => new ActionLeaderBoardControlAtLocation(new WeakParser(ActionLeaderBoardControlAtLocation.getComponents(), ActionLeaderBoardControlAtLocation.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Control", () => new ActionLeaderBoardControl(new WeakParser(ActionLeaderBoardControl.getComponents(), ActionLeaderBoardControl.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Deaths", () => new ActionLeaderBoardDeaths(new ActionLeaderBoardKills(new WeakParser(ActionLeaderBoardKills.getComponents(), ActionLeaderBoardKills.getTextMapping())))));
            lst.Add(new ConstrucableTriggerTemplate("Leader board Greed", () => new ActionLeaderboardGreed(new WeakParser(ActionLeaderboardGreed.getComponents(), ActionLeaderboardGreed.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Kills", () => new ActionLeaderBoardKills(new WeakParser(ActionLeaderBoardKills.getComponents(), ActionLeaderBoardKills.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Points", () => new ActionLeaderBoardPoints(new WeakParser(ActionLeaderBoardPoints.getComponents(), ActionLeaderBoardPoints.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Resources", () => new ActionLeaderBoardResources(new WeakParser(ActionLeaderBoardResources.getComponents(), ActionLeaderBoardResources.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Computer Players", () => new ActionLeaderboardComputerPlayers(new WeakParser(ActionLeaderboardComputerPlayers.getComponents(), ActionLeaderboardComputerPlayers.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Goal Control At Location", () => new ActionLeaderboardGoalControlAtLocation(new WeakParser(ActionLeaderboardGoalControlAtLocation.getComponents(), ActionLeaderboardGoalControlAtLocation.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Goal Control", () => new ActionLeaderboardGoalControl(new WeakParser(ActionLeaderboardGoalControl.getComponents(), ActionLeaderboardGoalControl.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Goal Kills", () => new ActionLeaderboardGoalKills(new WeakParser(ActionLeaderboardGoalKills.getComponents(), ActionLeaderboardGoalKills.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Goal Points", () => new ActionLeaderboardGoalPoints(new WeakParser(ActionLeaderboardGoalPoints.getComponents(), ActionLeaderboardGoalPoints.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Leader Board Goal Resources", () => new ActionLeaderboardGoalResources(new WeakParser(ActionLeaderboardGoalResources.getComponents(), ActionLeaderboardGoalResources.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Minimap Ping", () => new ActionMinimapPing(new WeakParser(ActionMinimapPing.getComponents(), ActionMinimapPing.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Modify Unit Energy", () => new ActionModifyUnitEnergy(new WeakParser(ActionModifyUnitEnergy.getComponents(), ActionModifyUnitEnergy.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Modify Unit Hanger Count", () => new ActionModifyUnitHangerCount(new WeakParser(ActionModifyUnitHangerCount.getComponents(), ActionModifyUnitHangerCount.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Modify Unit Hit Points", () => new ActionModifyUnitHitPoints(new WeakParser(ActionModifyUnitHitPoints.getComponents(), ActionModifyUnitHitPoints.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Modify Unit Resource Amount", () => new ActionModifyUnitResourceAmount(new WeakParser(ActionModifyUnitResourceAmount.getComponents(), ActionModifyUnitResourceAmount.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Modify Unit Shield Points", () => new ActionModifyUnitShieldPoints(new WeakParser(ActionModifyUnitShieldPoints.getComponents(), ActionModifyUnitShieldPoints.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Move Location", () => new ActionMoveLocation(new WeakParser(ActionMoveLocation.getComponents(), ActionMoveLocation.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Play WAV", () => new ActionPlayWAV(new WeakParser(ActionPlayWAV.getComponents(), ActionPlayWAV.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Move Unit", () => new ActionMoveUnit(new WeakParser(ActionMoveUnit.getComponents(), ActionMoveUnit.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Mute Unit Speech", () => new ActionMuteUnitSpeech(new WeakParser(ActionMuteUnitSpeech.getComponents(), ActionMuteUnitSpeech.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Order", () => new ActionOrder(new WeakParser(ActionOrder.getComponents(), ActionOrder.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Pause Game", () => new ActionPauseGame(new WeakParser(ActionPauseGame.getComponents(), ActionPauseGame.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Pause Timer", () => new ActionPauseTimer(new WeakParser(ActionPauseTimer.getComponents(), ActionPauseTimer.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Preserve Trigger", () => new ActionPreserveTrigger(new WeakParser(ActionPreserveTrigger.getComponents(), ActionPreserveTrigger.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Remove Unit", () => new ActionRemoveUnit(new WeakParser(ActionRemoveUnit.getComponents(), ActionRemoveUnit.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Remove Unit At Location", () => new ActionRemoveUnitAtLocation(new WeakParser(ActionRemoveUnitAtLocation.getComponents(), ActionRemoveUnitAtLocation.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Run AI Script", () => new ActionRunAIScript(new WeakParser(ActionRunAIScript.getComponents(), ActionRunAIScript.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Run AI Script At Location", () => new ActionRunAIScriptAtLocation(new WeakParser(ActionRunAIScriptAtLocation.getComponents(), ActionRunAIScriptAtLocation.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Alliance Status", () => new ActionSetAllianceStatus(new WeakParser(ActionSetAllianceStatus.getComponents(), ActionSetAllianceStatus.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Countdown Timer", () => new ActionSetCountdownTimer(new WeakParser(ActionSetCountdownTimer.getComponents(), ActionSetCountdownTimer.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Doodad State", () => new ActionSetDoodadState(new WeakParser(ActionSetDoodadState.getComponents(), ActionSetDoodadState.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Deaths", () => new ActionSetDeaths(new RawActionSetDeaths(new WeakParser(RawActionSetDeaths.getComponents(), RawActionSetDeaths.getTextMapping())))));
            lst.Add(new ConstrucableTriggerTemplate("Set Invincibility", () => new ActionSetInvincibility(new WeakParser(ActionSetInvincibility.getComponents(), ActionSetInvincibility.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Mission Objectives", () => new ActionSetMissionObjectives(new WeakParser(ActionSetMissionObjectives.getComponents(), ActionSetMissionObjectives.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Next Scenario", () => new ActionSetNextScenario(new WeakParser(ActionSetNextScenario.getComponents(), ActionSetNextScenario.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Resources", () => new ActionSetResources(new WeakParser(ActionSetResources.getComponents(), ActionSetResources.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Score", () => new ActionSetScore(new WeakParser(ActionSetScore.getComponents(), ActionSetScore.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Set Switch", () => new ActionSetSwitch(new WeakParser(ActionSetSwitch.getComponents(), ActionSetSwitch.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Talking Portrait", () => new ActionTalkingPortrait(new WeakParser(ActionTalkingPortrait.getComponents(), ActionTalkingPortrait.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Transmission", () => new ActionTransmission(new WeakParser(ActionTransmission.getComponents(), ActionTransmission.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Unmute Unit Speech", () => new ActionUnmuteUnitSpeech(new WeakParser(ActionUnmuteUnitSpeech.getComponents(), ActionUnmuteUnitSpeech.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Unpause Game", () => new ActionUnpauseGame(new WeakParser(ActionUnpauseGame.getComponents(), ActionUnpauseGame.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Unpause Timer", () => new ActionUnpauseTimer(new WeakParser(ActionUnpauseTimer.getComponents(), ActionUnpauseTimer.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Victory", () => new ActionVictory(new WeakParser(ActionVictory.getComponents(), ActionVictory.getTextMapping()))));
            lst.Add(new ConstrucableTriggerTemplate("Wait", () => new ActionWait(new WeakParser(ActionWait.getComponents(), ActionWait.getTextMapping()))));
            EPDAction.fillConstructables(lst);
            return(lst);
        }
Esempio n. 12
0
        public override bool Equals(object o)
        {
            if (!(o is ConversionProfile))
            {
                return(false);
            }
            ConversionProfile v = o as ConversionProfile;

            if (!AttachmentPage.Equals(v.AttachmentPage))
            {
                return(false);
            }
            if (!AutoSave.Equals(v.AutoSave))
            {
                return(false);
            }
            if (!BackgroundPage.Equals(v.BackgroundPage))
            {
                return(false);
            }
            if (!CoverPage.Equals(v.CoverPage))
            {
                return(false);
            }
            if (!CustomScript.Equals(v.CustomScript))
            {
                return(false);
            }
            if (!DropboxSettings.Equals(v.DropboxSettings))
            {
                return(false);
            }
            if (!EmailClientSettings.Equals(v.EmailClientSettings))
            {
                return(false);
            }
            if (!EmailSmtpSettings.Equals(v.EmailSmtpSettings))
            {
                return(false);
            }
            if (!ForwardToFurtherProfile.Equals(v.ForwardToFurtherProfile))
            {
                return(false);
            }
            if (!Ftp.Equals(v.Ftp))
            {
                return(false);
            }
            if (!Ghostscript.Equals(v.Ghostscript))
            {
                return(false);
            }
            if (!HttpSettings.Equals(v.HttpSettings))
            {
                return(false);
            }
            if (!JpegSettings.Equals(v.JpegSettings))
            {
                return(false);
            }
            if (!PdfSettings.Equals(v.PdfSettings))
            {
                return(false);
            }
            if (!PngSettings.Equals(v.PngSettings))
            {
                return(false);
            }
            if (!Printing.Equals(v.Printing))
            {
                return(false);
            }
            if (!Properties.Equals(v.Properties))
            {
                return(false);
            }
            if (!Scripting.Equals(v.Scripting))
            {
                return(false);
            }
            if (!Stamping.Equals(v.Stamping))
            {
                return(false);
            }
            if (!TextSettings.Equals(v.TextSettings))
            {
                return(false);
            }
            if (!TiffSettings.Equals(v.TiffSettings))
            {
                return(false);
            }
            if (!UserTokens.Equals(v.UserTokens))
            {
                return(false);
            }
            if (!Watermark.Equals(v.Watermark))
            {
                return(false);
            }
            if (!ActionOrder.SequenceEqual(v.ActionOrder))
            {
                return(false);
            }
            if (!AuthorTemplate.Equals(v.AuthorTemplate))
            {
                return(false);
            }
            if (!EnableWorkflowEditor.Equals(v.EnableWorkflowEditor))
            {
                return(false);
            }
            if (!FileNameTemplate.Equals(v.FileNameTemplate))
            {
                return(false);
            }
            if (!Guid.Equals(v.Guid))
            {
                return(false);
            }
            if (!KeywordTemplate.Equals(v.KeywordTemplate))
            {
                return(false);
            }
            if (!Name.Equals(v.Name))
            {
                return(false);
            }
            if (!OpenViewer.Equals(v.OpenViewer))
            {
                return(false);
            }
            if (!OpenWithPdfArchitect.Equals(v.OpenWithPdfArchitect))
            {
                return(false);
            }
            if (!OutputFormat.Equals(v.OutputFormat))
            {
                return(false);
            }
            if (!SaveFileTemporary.Equals(v.SaveFileTemporary))
            {
                return(false);
            }
            if (!ShowAllNotifications.Equals(v.ShowAllNotifications))
            {
                return(false);
            }
            if (!ShowOnlyErrorNotifications.Equals(v.ShowOnlyErrorNotifications))
            {
                return(false);
            }
            if (!ShowProgress.Equals(v.ShowProgress))
            {
                return(false);
            }
            if (!ShowQuickActions.Equals(v.ShowQuickActions))
            {
                return(false);
            }
            if (!SkipPrintDialog.Equals(v.SkipPrintDialog))
            {
                return(false);
            }
            if (!SubjectTemplate.Equals(v.SubjectTemplate))
            {
                return(false);
            }
            if (!TargetDirectory.Equals(v.TargetDirectory))
            {
                return(false);
            }
            if (!TitleTemplate.Equals(v.TitleTemplate))
            {
                return(false);
            }
            return(true);
        }
Esempio n. 13
0
        public void ReplaceWith(ConversionProfile source)
        {
            AttachmentPage.ReplaceWith(source.AttachmentPage);
            AutoSave.ReplaceWith(source.AutoSave);
            BackgroundPage.ReplaceWith(source.BackgroundPage);
            CoverPage.ReplaceWith(source.CoverPage);
            CustomScript.ReplaceWith(source.CustomScript);
            DropboxSettings.ReplaceWith(source.DropboxSettings);
            EmailClientSettings.ReplaceWith(source.EmailClientSettings);
            EmailSmtpSettings.ReplaceWith(source.EmailSmtpSettings);
            ForwardToFurtherProfile.ReplaceWith(source.ForwardToFurtherProfile);
            Ftp.ReplaceWith(source.Ftp);
            Ghostscript.ReplaceWith(source.Ghostscript);
            HttpSettings.ReplaceWith(source.HttpSettings);
            JpegSettings.ReplaceWith(source.JpegSettings);
            PdfSettings.ReplaceWith(source.PdfSettings);
            PngSettings.ReplaceWith(source.PngSettings);
            Printing.ReplaceWith(source.Printing);
            Properties.ReplaceWith(source.Properties);
            Scripting.ReplaceWith(source.Scripting);
            Stamping.ReplaceWith(source.Stamping);
            TextSettings.ReplaceWith(source.TextSettings);
            TiffSettings.ReplaceWith(source.TiffSettings);
            UserTokens.ReplaceWith(source.UserTokens);
            Watermark.ReplaceWith(source.Watermark);
            ActionOrder.Clear();
            for (int i = 0; i < source.ActionOrder.Count; i++)
            {
                ActionOrder.Add(source.ActionOrder[i]);
            }

            if (AuthorTemplate != source.AuthorTemplate)
            {
                AuthorTemplate = source.AuthorTemplate;
            }

            if (EnableWorkflowEditor != source.EnableWorkflowEditor)
            {
                EnableWorkflowEditor = source.EnableWorkflowEditor;
            }

            if (FileNameTemplate != source.FileNameTemplate)
            {
                FileNameTemplate = source.FileNameTemplate;
            }

            if (Guid != source.Guid)
            {
                Guid = source.Guid;
            }

            if (KeywordTemplate != source.KeywordTemplate)
            {
                KeywordTemplate = source.KeywordTemplate;
            }

            if (Name != source.Name)
            {
                Name = source.Name;
            }

            if (OpenViewer != source.OpenViewer)
            {
                OpenViewer = source.OpenViewer;
            }

            if (OpenWithPdfArchitect != source.OpenWithPdfArchitect)
            {
                OpenWithPdfArchitect = source.OpenWithPdfArchitect;
            }

            if (OutputFormat != source.OutputFormat)
            {
                OutputFormat = source.OutputFormat;
            }

            if (SaveFileTemporary != source.SaveFileTemporary)
            {
                SaveFileTemporary = source.SaveFileTemporary;
            }

            if (ShowAllNotifications != source.ShowAllNotifications)
            {
                ShowAllNotifications = source.ShowAllNotifications;
            }

            if (ShowOnlyErrorNotifications != source.ShowOnlyErrorNotifications)
            {
                ShowOnlyErrorNotifications = source.ShowOnlyErrorNotifications;
            }

            if (ShowProgress != source.ShowProgress)
            {
                ShowProgress = source.ShowProgress;
            }

            if (ShowQuickActions != source.ShowQuickActions)
            {
                ShowQuickActions = source.ShowQuickActions;
            }

            if (SkipPrintDialog != source.SkipPrintDialog)
            {
                SkipPrintDialog = source.SkipPrintDialog;
            }

            if (SubjectTemplate != source.SubjectTemplate)
            {
                SubjectTemplate = source.SubjectTemplate;
            }

            if (TargetDirectory != source.TargetDirectory)
            {
                TargetDirectory = source.TargetDirectory;
            }

            if (TitleTemplate != source.TitleTemplate)
            {
                TitleTemplate = source.TitleTemplate;
            }
        }
Esempio n. 14
0
 public override object ExecuteOnObject(ActionOrder order)
 {
     return(this.Execute(order));
 }