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