Interaction logic for CreateSessionDialog.xaml
Inheritance: System.Windows.Window
Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }