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(); } }
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(); } }