MainWindow.xaml.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. using Microsoft.Win32;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace SketchAssistantWPF
  17. {
  18. /// <summary>
  19. /// Interaction logic for MainWindow.xaml
  20. /// </summary>
  21. public partial class MainWindow : Window, MVP_View
  22. {
  23. public MainWindow()
  24. {
  25. InitializeComponent();
  26. ProgramPresenter = new MVP_Presenter(this);
  27. }
  28. public enum ButtonState
  29. {
  30. Enabled,
  31. Disabled,
  32. Active
  33. }
  34. /// <summary>
  35. /// Dialog to select a file.
  36. /// </summary>
  37. OpenFileDialog openFileDialog = new OpenFileDialog();
  38. /// <summary>
  39. /// All Lines in the current session
  40. /// </summary>
  41. List<Tuple<bool, Line>> rightLineList = new List<Tuple<bool, Line>>();
  42. /// <summary>
  43. /// Queue for the cursorPositions
  44. /// </summary>
  45. Queue<Point> cursorPositions = new Queue<Point>();
  46. /// <summary>
  47. /// The Presenter Component of the MVP-Model
  48. /// </summary>
  49. MVP_Presenter ProgramPresenter;
  50. /********************************************/
  51. /*** WINDOW SPECIFIC FUNCTIONS START HERE ***/
  52. /********************************************/
  53. private void RedoButton_Click(object sender, RoutedEventArgs e)
  54. {
  55. }
  56. private void UndoButton_Click(object sender, RoutedEventArgs e)
  57. {
  58. }
  59. private void DeleteButton_Click(object sender, RoutedEventArgs e)
  60. {
  61. }
  62. private void DrawButton_Click(object sender, RoutedEventArgs e)
  63. {
  64. }
  65. /// <summary>
  66. /// Button to create a new Canvas. Will create an empty image
  67. /// which is the size of the left image, if there is one.
  68. /// If there is no image loaded the canvas will be the size of the right picture box
  69. /// </summary>
  70. private void CanvasButton_Click(object sender, RoutedEventArgs e)
  71. {
  72. ProgramPresenter.NewCanvas();
  73. }
  74. /*************************/
  75. /*** PRESENTER -> VIEW ***/
  76. /*************************/
  77. public void DisplayInLeftPictureBox(Image img)
  78. {
  79. throw new NotImplementedException();
  80. }
  81. public void DisplayInRightPictureBox(Image img)
  82. {
  83. throw new NotImplementedException();
  84. }
  85. public void EnableTimer()
  86. {
  87. throw new NotImplementedException();
  88. }
  89. public Tuple<string, string> openNewDialog(string Filter)
  90. {
  91. throw new NotImplementedException();
  92. }
  93. public void SetLastActionTakenText(string message)
  94. {
  95. throw new NotImplementedException();
  96. }
  97. public void SetToolStripButtonStatus(string buttonName, MainWindow.ButtonState state)
  98. {
  99. throw new NotImplementedException();
  100. }
  101. public void SetToolStripLoadStatus(string message)
  102. {
  103. throw new NotImplementedException();
  104. }
  105. public void ShowInfoMessage(string message)
  106. {
  107. throw new NotImplementedException();
  108. }
  109. public bool ShowWarning(string message)
  110. {
  111. throw new NotImplementedException();
  112. }
  113. }
  114. }