Ei kuvausta

RLAlert.xaml.cs 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Shapes;
  13. namespace WpfApplication19
  14. {
  15. /// <summary>
  16. /// Interaction logic for RLAlert.xaml
  17. /// </summary>
  18. public partial class RLAlert : Window
  19. {
  20. RLWindow _rlWindow;
  21. public RLAlert()
  22. {
  23. InitializeComponent();
  24. }
  25. public void setRLWindow(RLWindow w)
  26. {
  27. this._rlWindow = w;
  28. }
  29. private void Window_Loaded(object sender, RoutedEventArgs e)
  30. {
  31. }
  32. private void button2_Click(object sender, RoutedEventArgs e)
  33. {
  34. //this._rlWindow.Close();
  35. this._rlWindow.closeFromAlert();
  36. }
  37. private void button1_Click(object sender, RoutedEventArgs e)
  38. {
  39. this.Close();
  40. }
  41. }
  42. }