PageRenderTime 75ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

/doc/help for namespace issue.txt

https://bitbucket.org/sandorom/oenik_szt2_2018tavasz_bvtdbg_x4mnxm_qf5io8
Plain Text | 371 lines | 326 code | 45 blank | 0 comment | 0 complexity | 2b4cb3ba3e5f3c2b2598c47eda3e0aed MD5 | raw file
  1. vez.xam.cs:
  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.Shapes;
  15. namespace CsomagALL
  16. {
  17. /// <summary>
  18. /// Interaction logic for Vezeto.xaml
  19. /// </summary>
  20. public partial class Vezeto : Window
  21. {
  22. public Vezeto()
  23. {
  24. InitializeComponent();
  25. }
  26. private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  27. {
  28. this.DialogResult = true;
  29. }
  30. private void MenuItem_Click(object sender, RoutedEventArgs e)
  31. {
  32. rendelesek_sp.Visibility = Visibility.Collapsed;
  33. futarok_sp.Visibility = Visibility.Collapsed;
  34. termekek_sp.Visibility = Visibility.Visible;
  35. }
  36. private void MenuItem_Click_1(object sender, RoutedEventArgs e)
  37. {
  38. termekek_sp.Visibility = Visibility.Collapsed;
  39. futarok_sp.Visibility = Visibility.Collapsed;
  40. rendelesek_sp.Visibility = Visibility.Visible;
  41. }
  42. private void MenuItem_Click_2(object sender, RoutedEventArgs e)
  43. {
  44. rendelesek_sp.Visibility = Visibility.Collapsed;
  45. termekek_sp.Visibility = Visibility.Collapsed;
  46. futarok_sp.Visibility = Visibility.Visible;
  47. }
  48. }
  49. }
  50. vez.xam:
  51. <Window x:Class="CsomagALL.Vezeto"
  52. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  53. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  54. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  55. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  56. xmlns:local="clr-namespace:CsomagALL"
  57. mc:Ignorable="d"
  58. ResizeMode="CanMinimize"
  59. Title="Vezeto" Height="522.038" Width="723.477" FontSize="14" Background="#04c582" Closing="Window_Closing">
  60. <Border Background="#2e3137" CornerRadius="20" Margin="20">
  61. <StackPanel Margin="20,20,20,10">
  62. <Menu Background="#2e3137" Foreground="White">
  63. <MenuItem Header="Termékek" Click="MenuItem_Click">
  64. </MenuItem>
  65. <MenuItem Header="Megrendelések" Click="MenuItem_Click_1">
  66. </MenuItem>
  67. <MenuItem Header="Futárok" Click="MenuItem_Click_2">
  68. </MenuItem>
  69. </Menu>
  70. <Separator></Separator>
  71. <StackPanel x:Name="termekek_sp" Orientation="Horizontal" Height="387" Visibility="Visible">
  72. <ListBox x:Name="osszesTermek_lb" Background="#545d6a" Width="293" Margin="10"/>
  73. <StackPanel Width="317">
  74. <Label x:Name="termekNev_label" Content="Név" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  75. <TextBox x:Name="termekNev_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  76. <Label x:Name="termekAr_label" Content="Ár" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  77. <TextBox x:Name="termekAr_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  78. <Label x:Name="termekLeiras_label" Content="Leírás" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  79. <TextBox x:Name="termekLeiras_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" Height="93" />
  80. <StackPanel Orientation="Horizontal">
  81. <Button x:Name="torles_btn" Content="Törlés" Margin="10 10 10 10" Background="#545d6a" Foreground="White" FontSize="18"/>
  82. <Button x:Name="szerk_btn" Content="Szerkesztés" Margin="10 10 10 10" Background="#545d6a" Foreground="White" FontSize="18"/>
  83. </StackPanel>
  84. </StackPanel>
  85. </StackPanel>
  86. <StackPanel x:Name="rendelesek_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
  87. <ListBox x:Name="rendelesek_lb" Background="#545d6a" Width="190" Margin="10"/>
  88. <ListBox x:Name="rendelestermekei_lb" Background="#545d6a" Width="190" Margin="10"/>
  89. </StackPanel>
  90. <StackPanel x:Name="futarok_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
  91. <ListBox x:Name="futarok_lb" Background="#545d6a" Width="190" Margin="10"/>
  92. </StackPanel>
  93. </StackPanel>
  94. </Border>
  95. </Window>
  96. megr.xam.cs:
  97. using System;
  98. using System.Collections.Generic;
  99. using System.Linq;
  100. using System.Text;
  101. using System.Threading.Tasks;
  102. using System.Windows;
  103. using System.Windows.Controls;
  104. using System.Windows.Data;
  105. using System.Windows.Documents;
  106. using System.Windows.Input;
  107. using System.Windows.Media;
  108. using System.Windows.Media.Imaging;
  109. using System.Windows.Shapes;
  110. namespace CsomagALL
  111. {
  112. public partial class Megrendelo : Window
  113. {
  114. public Megrendelo()
  115. {
  116. InitializeComponent();
  117. }
  118. private void MenuItem_Click(object sender, RoutedEventArgs e)
  119. {
  120. kosar_sp.Visibility = Visibility.Collapsed;
  121. uzenet_sp.Visibility = Visibility.Collapsed;
  122. rendelesek_sp.Visibility = Visibility.Collapsed;
  123. termekek_sp.Visibility = Visibility.Visible;
  124. }
  125. private void MenuItem_Click_1(object sender, RoutedEventArgs e)
  126. {
  127. termekek_sp.Visibility = Visibility.Collapsed;
  128. uzenet_sp.Visibility = Visibility.Collapsed;
  129. rendelesek_sp.Visibility = Visibility.Collapsed;
  130. kosar_sp.Visibility = Visibility.Visible;
  131. }
  132. private void MenuItem_Click_2(object sender, RoutedEventArgs e)
  133. {
  134. kosar_sp.Visibility = Visibility.Collapsed;
  135. termekek_sp.Visibility = Visibility.Collapsed;
  136. rendelesek_sp.Visibility = Visibility.Collapsed;
  137. uzenet_sp.Visibility = Visibility.Visible;
  138. }
  139. private void MenuItem_Click_3(object sender, RoutedEventArgs e)
  140. {
  141. kosar_sp.Visibility = Visibility.Collapsed;
  142. uzenet_sp.Visibility = Visibility.Collapsed;
  143. termekek_sp.Visibility = Visibility.Collapsed;
  144. rendelesek_sp.Visibility = Visibility.Visible;
  145. }
  146. private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  147. {
  148. this.DialogResult = true;
  149. }
  150. }
  151. }
  152. megr.xam:
  153. <Window x:Class="CsomagALL.Megrendelo"
  154. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  155. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  156. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  157. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  158. xmlns:local="clr-namespace:CsomagALL"
  159. mc:Ignorable="d"
  160. ResizeMode="CanMinimize"
  161. Title="Megrendelo" Height="522.038" Width="723.477" FontSize="14" Background="#04c582" Closing="Window_Closing">
  162. <Border Background="#2e3137" CornerRadius="20" Margin="20">
  163. <StackPanel Margin="20,20,20,10">
  164. <Menu Background="#2e3137" Foreground="White">
  165. <MenuItem Header="Termékek" Click="MenuItem_Click">
  166. </MenuItem>
  167. <MenuItem Header="Kosár" Click="MenuItem_Click_1">
  168. </MenuItem>
  169. <MenuItem Header="Üzenetek" Click="MenuItem_Click_2">
  170. </MenuItem>
  171. <MenuItem Header="Rendeléseim" Click="MenuItem_Click_3">
  172. </MenuItem>
  173. </Menu>
  174. <Separator></Separator>
  175. <StackPanel x:Name="termekek_sp" Orientation="Horizontal" Height="387" Visibility="Visible">
  176. <ListBox x:Name="osszesTermek_lb" Background="#545d6a" Width="293" Margin="10"/>
  177. <StackPanel Width="317">
  178. <Label x:Name="termekNev_label" Content="Név" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  179. <TextBox x:Name="termekNev_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  180. <Label x:Name="termekAr_label" Content="Ár" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  181. <TextBox x:Name="termekAr_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  182. <Label x:Name="termekLeiras_label" Content="Leírás" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  183. <TextBox x:Name="termekLeiras_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" Height="93" />
  184. <Button x:Name="kosarba_btn" Content="Kosárba" Margin="80 10 80 10" Background="#545d6a" Foreground="White" FontSize="18"/>
  185. </StackPanel>
  186. </StackPanel>
  187. <StackPanel x:Name="kosar_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
  188. <StackPanel>
  189. <ListBox x:Name="kosarTermek_lb" Background="#545d6a" Width="293" Margin="10" Height="320"/>
  190. <StackPanel Orientation="Horizontal">
  191. <Label x:Name="teljesAr_label_kosar" Content="Végösszeg:" Background="#545d6a" Margin="10 10 5 10" Foreground="White"/>
  192. <TextBox x:Name="teljesAr_tb_kosar" Background="#545d6a" Foreground="White" Margin="5 10 10 10" Width="204" />
  193. </StackPanel>
  194. </StackPanel>
  195. <StackPanel Width="317">
  196. <Label x:Name="termekNev_label_kosar" Content="Név" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  197. <TextBox x:Name="termekNev_tb_kosar" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  198. <Label x:Name="termekAr_label_kosar" Content="Ár" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  199. <TextBox x:Name="termekAr_tb_kosar" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  200. <Label x:Name="termekLeiras_label_kosar" Content="Leírás" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  201. <TextBox x:Name="termekLeiras_tb_kosar" Background="#545d6a" Foreground="White" Margin="10 10 10 10" Height="93" />
  202. <Button x:Name="rendel_btn_kosar" Content="Megrendel" Margin="80 10 80 10" Background="#545d6a" Foreground="White" FontSize="18"/>
  203. </StackPanel>
  204. </StackPanel>
  205. <StackPanel x:Name="uzenet_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
  206. <StackPanel>
  207. <ListBox x:Name="uzenetek_lb" Background="#545d6a" Width="293" Margin="10" Height="320"/>
  208. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  209. <Button x:Name="torles_btn" Content="Törlés" Margin="10 10 10 10" Background="#545d6a" Foreground="White" FontSize="18" Width="64"/>
  210. </StackPanel>
  211. </StackPanel>
  212. <StackPanel Width="317">
  213. <Label x:Name="felado_label" Content="Feladó" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  214. <TextBox x:Name="felado_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  215. <Label x:Name="targy_label" Content="Tárgy" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  216. <TextBox x:Name="targy_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  217. <Label x:Name="szoveg_label" Content="Üzenet szövege" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  218. <TextBox x:Name="szoveg_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" Height="93" />
  219. <Button x:Name="valasz_btn" Content="Válasz" Margin="80 10 80 10" Background="#545d6a" Foreground="White" FontSize="18"/>
  220. </StackPanel>
  221. </StackPanel>
  222. <StackPanel x:Name="rendelesek_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
  223. <StackPanel>
  224. <ListBox x:Name="rendelesek_lb" Background="#545d6a" Width="293" Margin="10" Height="369"/>
  225. </StackPanel>
  226. <StackPanel Width="317">
  227. <Label x:Name="rendelesId_label" Content="Azonosító" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  228. <TextBox x:Name="rendelesId_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  229. <Label x:Name="allapot_label" Content="Állapot" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  230. <TextBox x:Name="allapot_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  231. <Label x:Name="fizetendo_label" Content="Fizetendő összeg" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  232. <TextBox x:Name="fizetendo_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  233. <Button x:Name="torles_btn_rendeles" Content="Rendelés törlése" Margin="80 10 80 10" Background="#545d6a" Foreground="White" FontSize="18"/>
  234. </StackPanel>
  235. </StackPanel>
  236. </StackPanel>
  237. </Border>
  238. </Window>
  239. fut.xam.cs:
  240. using System;
  241. using System.Collections.Generic;
  242. using System.Linq;
  243. using System.Text;
  244. using System.Threading.Tasks;
  245. using System.Windows;
  246. using System.Windows.Controls;
  247. using System.Windows.Data;
  248. using System.Windows.Documents;
  249. using System.Windows.Input;
  250. using System.Windows.Media;
  251. using System.Windows.Media.Imaging;
  252. using System.Windows.Shapes;
  253. namespace CsomagALL
  254. {
  255. /// <summary>
  256. /// Interaction logic for Futar.xaml
  257. /// </summary>
  258. public partial class Futar : Window
  259. {
  260. public Futar()
  261. {
  262. InitializeComponent();
  263. }
  264. private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  265. {
  266. this.DialogResult = true;
  267. }
  268. private void MenuItem_Click(object sender, RoutedEventArgs e)
  269. {
  270. allapot_sp.Visibility = Visibility.Collapsed;
  271. csomagok_sp.Visibility = Visibility.Visible;
  272. }
  273. private void MenuItem_Click_1(object sender, RoutedEventArgs e)
  274. {
  275. csomagok_sp.Visibility = Visibility.Collapsed;
  276. allapot_sp.Visibility = Visibility.Visible;
  277. }
  278. }
  279. }
  280. fut.xam:
  281. <Window x:Class="CsomagALL.Futar"
  282. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  283. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  284. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  285. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  286. xmlns:local="clr-namespace:CsomagALL"
  287. mc:Ignorable="d"
  288. ResizeMode="CanMinimize"
  289. Title="Futar" Height="543.038" Width="558.477" FontSize="14" Background="#04c582" Closing="Window_Closing">
  290. <Border Background="#2e3137" CornerRadius="20" Margin="20">
  291. <StackPanel Margin="20,20,20,10">
  292. <Menu Background="#2e3137" Foreground="White">
  293. <MenuItem Header="Csomagok" Click="MenuItem_Click">
  294. </MenuItem>
  295. <MenuItem Header="Állapot" Click="MenuItem_Click_1">
  296. </MenuItem>
  297. </Menu>
  298. <Separator></Separator>
  299. <StackPanel x:Name="csomagok_sp" Height="461" Visibility="Visible">
  300. <Label x:Name="rendeloNev_label" Content="Megrendelő neve:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  301. <TextBox x:Name="rendeloNev_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  302. <Label x:Name="rendeloCim_label" Content="Címe:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  303. <TextBox x:Name="rendelocim_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  304. <Label x:Name="RendelesID_label" Content="Termék ID:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  305. <TextBox x:Name="RendelesID_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  306. <Label x:Name="fiz_label" Content="Fizetendő:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  307. <TextBox x:Name="fiz_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
  308. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  309. <Button x:Name="sikeres_btn" Content="Sikeres kiszállítás" Margin="10 10 10 10" Background="Green" Foreground="White" FontSize="18"/>
  310. <Button x:Name="sikertelen_btn" Content="Sikertelen kiszállítás" Margin="10 10 10 10" Background="Red" Foreground="White" FontSize="18"/>
  311. </StackPanel>
  312. </StackPanel>
  313. <StackPanel x:Name="allapot_sp" Orientation="Vertical" Height="387" Visibility="Collapsed">
  314. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  315. <Label x:Name="allapot_label" Content="Állapot:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  316. <Label x:Name="allapotadatkotve_label" Content="" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
  317. </StackPanel>
  318. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  319. <Button x:Name="elerheto_btn" Content="Elérhető" Margin="10 10 10 10" Background="Green" Foreground="White" FontSize="18"/>
  320. <Button x:Name="tulterhelt_btn" Content="Túlterhelt" Margin="10 10 10 10" Background="Gold" Foreground="White" FontSize="18"/>
  321. <Button x:Name="beteg_btn" Content="Beteg" Margin="10 10 10 10" Background="Red" Foreground="White" FontSize="18"/>
  322. </StackPanel>
  323. </StackPanel>
  324. </StackPanel>
  325. </Border>
  326. </Window>