public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            Window.Title = Constants.Name + " - " + Messages.WindowsProviderNoBootstrapTitle;

            GuiUtils.SetCheck(ChkDontShowAgain, false);
            LblBody.StringValue       = Common.MessagesFormatter.Format(Messages.WindowsProviderNoBootstrapBody, Provider.Title);
            TxtManualUrls.StringValue = Engine.Instance.Storage.Get("bootstrap.urls");

            CmdOk.Activated += (object sender, EventArgs e) =>
            {
                Engine.Instance.Storage.SetBool("ui.skip.provider.manifest.failed", GuiUtils.GetCheck(ChkDontShowAgain));
                Engine.Instance.Storage.Set("bootstrap.urls", TxtManualUrls.StringValue);
                Engine.Instance.RefreshProvidersInvalidateConnections();

                Window.Close();
                NSApplication.SharedApplication.StopModal();
                Singleton = null;
            };

            CmdCancel.Activated += (object sender, EventArgs e) =>
            {
                Engine.Instance.Storage.SetBool("ui.skip.provider.manifest.failed", GuiUtils.GetCheck(ChkDontShowAgain));

                Window.Close();
                NSApplication.SharedApplication.StopModal();
                Singleton = null;
            };
        }
Example #2
0
        public void ProviderManifestFailed(Provider provider)
        {
            WindowProviderNoBootstrapController w = new WindowProviderNoBootstrapController();

            w.Provider = provider;
            NSApplication.SharedApplication.RunModalForWindow(w.Window);
        }
 public WindowProviderNoBootstrapController() : base("WindowProviderNoBootstrap")
 {
     Singleton = this;
 }