65 lines
1.8 KiB
C#
65 lines
1.8 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 Xceed.Wpf.Toolkit;
|
|
|
|
namespace Client
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for MainWindow.xaml
|
|
/// </summary>
|
|
public partial class MainWindow : Window
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void ButtonClose_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
private void ButtonSend_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
//private void TextChanged(object sender, KeyboardFocusChangedEventArgs e)
|
|
//{
|
|
// if (((TextBox)sender).Text.Length == 0)
|
|
// ((TextBox)sender).Text = ((TextBox)sender).Text.ToString();
|
|
//}
|
|
|
|
//private void TextInputs(object sender, EventArgs e)
|
|
//{
|
|
// if ((((TextBox)sender).Text) == (((TextBox)sender).Text))
|
|
// ((TextBox)sender).Text = string.Empty;
|
|
// ((TextBox)sender).SelectionStart = 1;
|
|
//}
|
|
|
|
//private void TextboxArztName_LostFocus(object sender, KeyboardFocusChangedEventArgs e) => TextChanged(sender, e);
|
|
|
|
//private void TextboxArztName_MouseDown(object sender, MouseButtonEventArgs e)
|
|
//{
|
|
// TextInputs(sender, e);
|
|
// //TextboxArztName.Text = string.Empty;
|
|
//}
|
|
//private void TextboxArztName_PreviewTextInput(object sender, TextCompositionEventArgs e)
|
|
//{
|
|
// TextInputs(sender, e);
|
|
//}
|
|
|
|
}
|
|
}
|