Ejemplo n.º 1
0
        // FlowLayoutPanel doesn't support visual inheritance, so we have to add links manually here.
        private void InitNavigation()
        {
            ControlPanelTaskLink general = new ControlPanelTaskLink() {
                Text = Locale.Current.Preferences.Navigation.General,
                AssociatedPanel = _PanelGeneral
            };
            ControlPanelTaskLink accounts = new ControlPanelTaskLink() {
                Text = Locale.Current.Preferences.Navigation.Accounts,
                AssociatedPanel = _PanelAccounts
            };
            //ControlPanelTaskLink appearance = new ControlPanelTaskLink() {
            //  Text = Locale.Current.Preferences.Navigation.Appearance,
            //  AssociatedPanel = _PanelAppearance
            //};

            this.Tasks.Add(general);
            this.Tasks.Add(accounts);
            //this.Tasks.Add(appearance);

            ControlPanelTaskLink about = new ControlPanelTaskLink() { Text = Locale.Current.JumpList.About };
            ControlPanelTaskLink check = new ControlPanelTaskLink() { Text = Locale.Current.JumpList.Check };

            about.Click += delegate(object sender, EventArgs e) {
                Program.MainForm.Jumplist_ShowAbout(null);
            };

            check.Click += delegate(object sender, EventArgs e) {
                // TODO: Check for updates
                // do a little circly thingie like chrome, show a check if up to date
            };

            this.OtherTasks.Add(about);
            this.OtherTasks.Add(check);
        }
Ejemplo n.º 2
0
        // FlowLayoutPanel doesn't support visual inheritance, so we have to add links manually here.
        private void InitNavigation()
        {
            ControlPanelTaskLink general = new ControlPanelTaskLink() {
                Text = Locale.Current.Preferences.Navigation.General,
                AssociatedPanel = _PanelGeneral
            };
            ControlPanelTaskLink accounts = new ControlPanelTaskLink() {
                Text = Locale.Current.Preferences.Navigation.Accounts,
                AssociatedPanel = _PanelAccounts
            };

            this.Tasks.Add(general);
            this.Tasks.Add(accounts);

            ControlPanelTaskLink about = new ControlPanelTaskLink() { Text = Locale.Current.JumpList.About };
            ControlPanelTaskLink donate = new ControlPanelTaskLink() { Text = Locale.Current.Preferences.Navigation.Donate};

            about.Click += delegate(object sender, EventArgs e) {
                Program.MainForm.Jumplist_ShowAbout(null);
            };

            donate.Click += delegate(object sender, EventArgs e) {
                Shellscape.Utilities.ApplicationHelper.Donate("Gmail%20Notifier%20Plus%20Donation");
            };

            this.OtherTasks.Add(about);
            this.OtherTasks.Add(donate);
        }