53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using OliviaAddInPro.Helper;
|
|
|
|
namespace OliviaAddInPro
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for PaneLimpiezaSub1View.xaml
|
|
/// </summary>
|
|
public partial class PaneLimpiezaSub1View : UserControl
|
|
{
|
|
public PaneLimpiezaSub1View()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void ComboBox_DropDownOpened(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void TextBox_velodespl_PreviewTextInput(object sender, TextCompositionEventArgs e)
|
|
{
|
|
e.Handled = !PanelGlobal.IsValid(((TextBox)sender).Text + e.Text, 1, 100);
|
|
}
|
|
private void TextBox_tiempotto_PreviewTextInput(object sender, TextCompositionEventArgs e)
|
|
{
|
|
e.Handled = !PanelGlobal.IsValid(((TextBox)sender).Text + e.Text, 1, 100);
|
|
}
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
string res=HelperGdb.OpenFileDialog(HelperGdb.TiposOpenFileDlg.OpenFtrClassLine | HelperGdb.TiposOpenFileDlg.OpenFtrClassPoint);
|
|
if (res.Length > 0)
|
|
label_capalimp.Content = System.IO.Path.GetFileName(res);
|
|
else
|
|
label_capalimp.Content = Resource1.String_selec_capa;
|
|
}
|
|
}
|
|
}
|