示例#1
0
        protected override void InternalExecute(ICommandAdapter adapter)
        {
            var xpandFillFormCommand = new XpandFillFormCommand();

            xpandFillFormCommand.Parameters.Add(new Parameter("File name:", Parameters.MainParameter.Value, true, EndPosition));
            xpandFillFormCommand.Execute(adapter);
            var handleDialogCommand = new XpandHandleDialogCommand();

            handleDialogCommand.Parameters.Add(new Parameter("Respond", ButtonLocalizations.GetLocalizedButtonCaption("Open"), true, EndPosition));
            handleDialogCommand.Execute(adapter);
        }
示例#2
0
        protected override void InternalExecute(ICommandAdapter adapter)
        {
            base.InternalExecute(adapter);
            var sleepCommand = new SleepCommand();

            sleepCommand.Parameters.MainParameter = new MainParameter("1000");
            sleepCommand.Execute(adapter);

            var actionCommand = new ActionCommand();

            actionCommand.Parameters.MainParameter  = new MainParameter("Delete");
            actionCommand.Parameters.ExtraParameter = new MainParameter();
            actionCommand.Execute(adapter);

            var handleDialogCommand = new XpandHandleDialogCommand();

            handleDialogCommand.Parameters.Add(new Parameter("Respond", "Yes", true, EndPosition));
            handleDialogCommand.Execute(adapter);
        }
示例#3
0
        protected override void InternalExecute(ICommandAdapter adapter)
        {
            var deleteFileCommand = new XpandDeleteFileCommand();

            deleteFileCommand.Parameters.MainParameter = Parameters.MainParameter;
            deleteFileCommand.Parameters.Add(new Parameter(XpandDeleteFileCommand.InBin, "True", true, EndPosition));
            deleteFileCommand.Execute(adapter);
            var binPath         = this.GetBinPath();
            var fillFormCommand = new XpandFillFormCommand();

            fillFormCommand.Parameters.Add(new Parameter("File name:", Path.Combine(binPath, Parameters.MainParameter.Value), true, EndPosition));
            fillFormCommand.Execute(adapter);
            var handleDialogCommand = new XpandHandleDialogCommand();

            handleDialogCommand.Parameters.Add(new Parameter("Respond", ButtonLocalizations.GetLocalizedButtonCaption("Save"), true, EndPosition));
            handleDialogCommand.Execute(adapter);
            var sleepCommand = new SleepCommand();

            sleepCommand.Parameters.MainParameter = new MainParameter("1000");
            sleepCommand.Execute(adapter);
        }