private void CreateButton_Clicked(object sender, RoutedEventArgs e) { CreateSessionDialog dialog = new CreateSessionDialog(App.XToolsApp.SessionManager.GetCurrentUser().GetName().GetString() + "'s Session"); dialog.Owner = this; bool?result = dialog.ShowDialog(); if (result.HasValue && result.Value) { this.CurrentSessionName = dialog.SessionName; App.XToolsApp.CreateSession(dialog.SessionName); } }
private void CreateButton_Clicked(object sender, RoutedEventArgs e) { CreateSessionDialog dialog = new CreateSessionDialog(App.XToolsApp.SessionManager.GetCurrentUser().GetName().GetString() + "'s Session"); dialog.Owner = this; bool? result = dialog.ShowDialog(); if (result.HasValue && result.Value) { this.CurrentSessionName = dialog.SessionName; App.XToolsApp.CreateSession(dialog.SessionName); } }