private void Create_Click(object sender, RoutedEventArgs e)
 {
     PlayButtonSound.Play();
     // レイアウトモードに移行してもよいかの確認
     var dialog = new DialogWindow.DialogWindow(
         Properties.Resources.LayoutSelectTitle,
         Properties.Resources.LayoutSelectMessage,
         DialogWindow.DialogWindow.DialogStyle.OKCANCEL);
     var ret = dialog.ShowDialog();
     if (ret == true)
     {
         var configWindow = (ConfigWindow)Window.GetWindow(this);
         configWindow.ConfigGrid.Visibility = System.Windows.Visibility.Hidden;
         // レイアウト作成モードに移行
         // レイアウトモードは上にコマンドエリアを表示
         var layoutWindow = new LayoutWindow();
         layoutWindow.ShowDialog();
         configWindow.ConfigGrid.Visibility = System.Windows.Visibility.Visible;
     }
 }
Beispiel #2
0
        private void Create_Click(object sender, RoutedEventArgs e)
        {
            PlayButtonSound.Play();
            // レイアウトモードに移行してもよいかの確認
            var dialog = new DialogWindow.DialogWindow(
                Properties.Resources.LayoutSelectTitle,
                Properties.Resources.LayoutSelectMessage,
                DialogWindow.DialogWindow.DialogStyle.OKCANCEL);
            var ret = dialog.ShowDialog();

            if (ret == true)
            {
                var configWindow = (ConfigWindow)Window.GetWindow(this);
                configWindow.ConfigGrid.Visibility = System.Windows.Visibility.Hidden;
                // レイアウト作成モードに移行
                // レイアウトモードは上にコマンドエリアを表示
                var layoutWindow = new LayoutWindow();
                layoutWindow.ShowDialog();
                configWindow.ConfigGrid.Visibility = System.Windows.Visibility.Visible;
            }
        }