TextInputDialog.xaml.cs 635 B

123456789101112131415161718192021222324252627282930
  1. using System.Windows;
  2. namespace TeamAAS_VP.Views.Dialogs
  3. {
  4. public partial class TextInputDialog : Window
  5. {
  6. public TextInputDialog()
  7. {
  8. InitializeComponent();
  9. }
  10. public string InputText
  11. {
  12. get { return InputBox.Text; }
  13. set { InputBox.Text = value; }
  14. }
  15. private void Ok_Click(object sender, RoutedEventArgs e)
  16. {
  17. DialogResult = true;
  18. Close();
  19. }
  20. private void Cancel_Click(object sender, RoutedEventArgs e)
  21. {
  22. DialogResult = false;
  23. Close();
  24. }
  25. }
  26. }