Beispiel #1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            Window.Title = Constants.Name + " - " + LanguageManager.GetText("WindowsFrontMessageTitle");

            GuiUtils.SetButtonDefault(Window, CmdClose);

            TxtMessage.StringValue = Message["text"].Value as string;
            CmdClose.Title         = LanguageManager.GetText("WindowsFrontMessageAccept");

            if (Message.HasKey("link"))
            {
                CmdMore.Title = Message["link"].Value as string;
            }
            else
            {
                CmdMore.Hidden = true;
            }

            CmdClose.Activated += (object sender, EventArgs e) =>
            {
                Window.Close();
            };

            CmdMore.Activated += (object sender, EventArgs e) =>
            {
                //GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["help"]["website"].Value as string);
                GuiUtils.OpenUrl(Message["url"].Value as string);
            };
        }
Beispiel #2
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

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

            CmdOk.Activated += (object sender, EventArgs e) =>
            {
                Command = TxtCommand.StringValue;

                Window.Close();
                NSApplication.SharedApplication.StopModal();
            };

            CmdCancel.Activated += (object sender, EventArgs e) =>
            {
                Command = "";

                Window.Close();
                NSApplication.SharedApplication.StopModal();
            };

            LnkHelp.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["help"]["openvpn-management"].Value as string);
            };
        }
Beispiel #3
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            Window.Title = Constants.Name + " - " + LanguageManager.GetText("WindowsAboutTitle");

            GuiUtils.SetButtonDefault(Window, CmdOk);

            CmdHomePage.Title      = UiClient.Instance.Data["links"]["help"]["website"].Value as string;
            CmdSoftware.Title      = UiClient.Instance.Data["links"]["help"]["general"].Value as string;
            CmdSources.Title       = UiClient.Instance.Data["links"]["github"].Value as string;
            TxtVersion.StringValue = LanguageManager.GetText("WindowsAboutVersion", Constants.VersionDesc);

            LblThanks.StringValue = LanguageManager.GetText("WindowsAboutThanks", Constants.Thanks);

            CmdHomePage.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["help"]["website"].Value as string);
            };

            CmdSoftware.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["help"]["general"].Value as string);
            };

            CmdSources.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["github"].Value as string);
            };

            CmdAirVPN.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl("https://airvpn.org");
            };

            CmdLicense.Activated += (object sender, EventArgs e) =>
            {
                UiClient.Instance.MainWindow.ShowText(Window, "License", UiClient.Instance.Data["about"]["license"].Value as string);
            };

            CmdLibraries.Activated += (object sender, EventArgs e) =>
            {
                UiClient.Instance.MainWindow.ShowText(Window, "Libraries and Tools", UiClient.Instance.Data["about"]["libraries"].Value as string);
            };

            CmdOk.Activated += (object sender, EventArgs e) =>
            {
                this.Close();
                NSApplication.SharedApplication.StopModal();
            };

            CmdSystemReport.Activated += (object sender, EventArgs e) =>
            {
                UiClient.Instance.Command("system.report.start");
            };
        }
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

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

            CmdHomePage.Title      = UiClient.Instance.Data["links"]["help"]["website"].Value as string;
            CmdSoftware.Title      = UiClient.Instance.Data["links"]["help"]["general"].Value as string;
            CmdSources.Title       = UiClient.Instance.Data["links"]["github"].Value as string;
            TxtVersion.StringValue = Messages.WindowsAboutVersion + " " + Constants.VersionDesc;

            LblThanks.StringValue = MessagesFormatter.Format(Messages.WindowsAboutThanks, String.Join(", ", Constants.Thanks.Split(';')));

            CmdHomePage.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["help"]["website"].Value as string);
            };

            CmdSoftware.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["help"]["general"].Value as string);
            };

            CmdSources.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["github"].Value as string);
            };

            CmdAirVPN.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl("https://airvpn.org");
            };

            CmdLicense.Activated += (object sender, EventArgs e) =>
            {
                (Engine.Instance as UI.Cocoa.Osx.Engine).MainWindow.ShowText(Window, "License", UiClient.Instance.Data["about"]["license"].Value as string);
            };

            CmdLibraries.Activated += (object sender, EventArgs e) =>
            {
                (Engine.Instance as UI.Cocoa.Osx.Engine).MainWindow.ShowText(Window, "Libraries and Tools", UiClient.Instance.Data["about"]["libraries"].Value as string);
            };

            CmdOk.Activated += (object sender, EventArgs e) =>
            {
                this.Close();
                NSApplication.SharedApplication.StopModal();
            };

            CmdSystemReport.Activated += (object sender, EventArgs e) =>
            {
                UiClient.Instance.Command("system.report.start");
            };
        }
Beispiel #5
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

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

            TxtMessage.StringValue = Message;
            CmdClose.Title         = Messages.WindowsFrontMessageAccept;
            CmdMore.Title          = Messages.WindowsFrontMessageMore;

            CmdClose.Activated += (object sender, EventArgs e) =>
            {
                Window.Close();
            };

            CmdMore.Activated += (object sender, EventArgs e) =>
            {
                GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["help"]["website"].Value as string);
            };
        }
 public void ShowForwardingPorts()
 {
     GuiUtils.OpenUrl("https://airvpn.org/ports/");
 }
 public void ShowClientArea()
 {
     GuiUtils.OpenUrl("https://airvpn.org/client/");
 }
 public void ShowHome()
 {
     GuiUtils.OpenUrl(UiClient.Instance.Data["links"]["help"]["website"].Value as string);
 }