Beispiel #1
0
        void HandleEditProfileActionTriggered()
        {
            // FIXME: Using ShowAccountMenu here looks really bad.
            // Need to add the accounts into the menu under the action instead.
            var account = Gui.ShowAccountSelectMenu(null);

            if (account != null)
            {
                var dialog = new EditProfileDialog(account, Gui.MainWindow);
                dialog.Show();
            }
        }
Beispiel #2
0
        void HandleShowBrowserActionTriggered()
        {
            // FIXME: Using ShowAccountMenu here looks really bad.
            // Need to add the accounts into the menu under the action instead.
            var account = Gui.ShowAccountSelectMenu(null);

            if (account != null)
            {
                var window = new ServiceBrowserWindow(account);
                window.Show();
            }
        }