-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBundleDialog.xaml.cs
More file actions
31 lines (28 loc) · 994 Bytes
/
BundleDialog.xaml.cs
File metadata and controls
31 lines (28 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System.Windows;
namespace BlazorCodeBehindUtil
{
public partial class BundleDialog : Window
{
public string ComponentName { get; private set; }
public bool CreateCS { get; private set; }
public bool CreateCSS { get; private set; }
public bool CreateJS { get; private set; }
public BundleDialog(string defaultName, bool cs, bool css, bool js)
{
InitializeComponent();
ComponentNameInput.Text = defaultName;
ComponentNameInput.Focus();
CheckCS.IsChecked = cs;
CheckCSS.IsChecked = css;
CheckJS.IsChecked = js;
}
private void Create_Click(object sender, RoutedEventArgs e)
{
ComponentName = ComponentNameInput.Text;
CreateCS = CheckCS.IsChecked ?? false;
CreateCSS = CheckCSS.IsChecked ?? false;
CreateJS = CheckJS.IsChecked ?? false;
DialogResult = true;
}
}
}