mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
Dialog for entering wildcard mask.
This commit is contained in:
27
EnterMaskDialog.xaml.cs
Normal file
27
EnterMaskDialog.xaml.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace GARbro.GUI
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for EnterMaskDialog.xaml
|
||||
/// </summary>
|
||||
public partial class EnterMaskDialog : Window
|
||||
{
|
||||
public EnterMaskDialog (IEnumerable<string> mask_list)
|
||||
{
|
||||
InitializeComponent ();
|
||||
// Mask.ItemsSource = mask_list;
|
||||
Mask.Text = "*.*";
|
||||
Mask.SelectionStart = 2;
|
||||
Mask.SelectionLength = 1;
|
||||
FocusManager.SetFocusedElement (this, Mask);
|
||||
}
|
||||
|
||||
private void Button_Click (object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.DialogResult = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user