Exemplo n.º 1
0
 public override void PageInstallLicense(PageInstallLicense action)
 {
     using (var continuation = Runner.GetContinuation())
     {
         _form.ShowPage <InstallLicensePage>(Runner, action, continuation);
     }
 }
Exemplo n.º 2
0
        public InstallLicensePage(ScriptRunner runner, PageInstallLicense action, IScriptContinuation continuation)
        {
            if (runner == null)
            {
                throw new ArgumentNullException("runner");
            }
            if (action == null)
            {
                throw new ArgumentNullException("action");
            }
            if (continuation == null)
            {
                throw new ArgumentNullException("continuation");
            }

            _runner       = runner;
            _continuation = continuation;

            InitializeComponent();

            _license.Text   = TextUtil.FixNewlines(runner.ParseTemplate(action.Value));
            _header.SubText = String.Format(_header.SubText, runner.Environment.Config.SetupTitle);
            _agree.Text     = String.Format(_agree.Text, runner.Environment.Config.SetupTitle);

            _license.Select(0, 0);
        }