/doc/help for namespace issue.txt
Plain Text | 371 lines | 326 code | 45 blank | 0 comment | 0 complexity | 2b4cb3ba3e5f3c2b2598c47eda3e0aed MD5 | raw file
- vez.xam.cs:
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
- namespace CsomagALL
- {
- /// <summary>
- /// Interaction logic for Vezeto.xaml
- /// </summary>
- public partial class Vezeto : Window
- {
- public Vezeto()
- {
- InitializeComponent();
- }
- private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- this.DialogResult = true;
- }
- private void MenuItem_Click(object sender, RoutedEventArgs e)
- {
- rendelesek_sp.Visibility = Visibility.Collapsed;
- futarok_sp.Visibility = Visibility.Collapsed;
- termekek_sp.Visibility = Visibility.Visible;
- }
- private void MenuItem_Click_1(object sender, RoutedEventArgs e)
- {
- termekek_sp.Visibility = Visibility.Collapsed;
- futarok_sp.Visibility = Visibility.Collapsed;
- rendelesek_sp.Visibility = Visibility.Visible;
- }
- private void MenuItem_Click_2(object sender, RoutedEventArgs e)
- {
- rendelesek_sp.Visibility = Visibility.Collapsed;
- termekek_sp.Visibility = Visibility.Collapsed;
- futarok_sp.Visibility = Visibility.Visible;
- }
- }
- }
- vez.xam:
- <Window x:Class="CsomagALL.Vezeto"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:CsomagALL"
- mc:Ignorable="d"
- ResizeMode="CanMinimize"
- Title="Vezeto" Height="522.038" Width="723.477" FontSize="14" Background="#04c582" Closing="Window_Closing">
- <Border Background="#2e3137" CornerRadius="20" Margin="20">
- <StackPanel Margin="20,20,20,10">
- <Menu Background="#2e3137" Foreground="White">
- <MenuItem Header="Termékek" Click="MenuItem_Click">
- </MenuItem>
- <MenuItem Header="Megrendelések" Click="MenuItem_Click_1">
- </MenuItem>
- <MenuItem Header="Futárok" Click="MenuItem_Click_2">
- </MenuItem>
- </Menu>
- <Separator></Separator>
- <StackPanel x:Name="termekek_sp" Orientation="Horizontal" Height="387" Visibility="Visible">
- <ListBox x:Name="osszesTermek_lb" Background="#545d6a" Width="293" Margin="10"/>
- <StackPanel Width="317">
- <Label x:Name="termekNev_label" Content="Név" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekNev_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="termekAr_label" Content="Ár" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekAr_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="termekLeiras_label" Content="Leírás" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekLeiras_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" Height="93" />
- <StackPanel Orientation="Horizontal">
- <Button x:Name="torles_btn" Content="Törlés" Margin="10 10 10 10" Background="#545d6a" Foreground="White" FontSize="18"/>
- <Button x:Name="szerk_btn" Content="Szerkesztés" Margin="10 10 10 10" Background="#545d6a" Foreground="White" FontSize="18"/>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- <StackPanel x:Name="rendelesek_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
- <ListBox x:Name="rendelesek_lb" Background="#545d6a" Width="190" Margin="10"/>
- <ListBox x:Name="rendelestermekei_lb" Background="#545d6a" Width="190" Margin="10"/>
- </StackPanel>
- <StackPanel x:Name="futarok_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
- <ListBox x:Name="futarok_lb" Background="#545d6a" Width="190" Margin="10"/>
- </StackPanel>
- </StackPanel>
- </Border>
- </Window>
- megr.xam.cs:
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
- namespace CsomagALL
- {
- public partial class Megrendelo : Window
- {
- public Megrendelo()
- {
- InitializeComponent();
- }
- private void MenuItem_Click(object sender, RoutedEventArgs e)
- {
- kosar_sp.Visibility = Visibility.Collapsed;
- uzenet_sp.Visibility = Visibility.Collapsed;
- rendelesek_sp.Visibility = Visibility.Collapsed;
- termekek_sp.Visibility = Visibility.Visible;
- }
- private void MenuItem_Click_1(object sender, RoutedEventArgs e)
- {
- termekek_sp.Visibility = Visibility.Collapsed;
- uzenet_sp.Visibility = Visibility.Collapsed;
- rendelesek_sp.Visibility = Visibility.Collapsed;
- kosar_sp.Visibility = Visibility.Visible;
- }
- private void MenuItem_Click_2(object sender, RoutedEventArgs e)
- {
- kosar_sp.Visibility = Visibility.Collapsed;
- termekek_sp.Visibility = Visibility.Collapsed;
- rendelesek_sp.Visibility = Visibility.Collapsed;
- uzenet_sp.Visibility = Visibility.Visible;
- }
- private void MenuItem_Click_3(object sender, RoutedEventArgs e)
- {
- kosar_sp.Visibility = Visibility.Collapsed;
- uzenet_sp.Visibility = Visibility.Collapsed;
- termekek_sp.Visibility = Visibility.Collapsed;
- rendelesek_sp.Visibility = Visibility.Visible;
- }
- private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- this.DialogResult = true;
- }
- }
- }
- megr.xam:
- <Window x:Class="CsomagALL.Megrendelo"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:CsomagALL"
- mc:Ignorable="d"
- ResizeMode="CanMinimize"
- Title="Megrendelo" Height="522.038" Width="723.477" FontSize="14" Background="#04c582" Closing="Window_Closing">
- <Border Background="#2e3137" CornerRadius="20" Margin="20">
- <StackPanel Margin="20,20,20,10">
- <Menu Background="#2e3137" Foreground="White">
- <MenuItem Header="Termékek" Click="MenuItem_Click">
- </MenuItem>
- <MenuItem Header="Kosár" Click="MenuItem_Click_1">
- </MenuItem>
- <MenuItem Header="Üzenetek" Click="MenuItem_Click_2">
- </MenuItem>
- <MenuItem Header="Rendeléseim" Click="MenuItem_Click_3">
- </MenuItem>
- </Menu>
- <Separator></Separator>
-
- <StackPanel x:Name="termekek_sp" Orientation="Horizontal" Height="387" Visibility="Visible">
- <ListBox x:Name="osszesTermek_lb" Background="#545d6a" Width="293" Margin="10"/>
- <StackPanel Width="317">
- <Label x:Name="termekNev_label" Content="Név" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekNev_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="termekAr_label" Content="Ár" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekAr_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="termekLeiras_label" Content="Leírás" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekLeiras_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" Height="93" />
- <Button x:Name="kosarba_btn" Content="Kosárba" Margin="80 10 80 10" Background="#545d6a" Foreground="White" FontSize="18"/>
- </StackPanel>
- </StackPanel>
-
- <StackPanel x:Name="kosar_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
- <StackPanel>
- <ListBox x:Name="kosarTermek_lb" Background="#545d6a" Width="293" Margin="10" Height="320"/>
- <StackPanel Orientation="Horizontal">
- <Label x:Name="teljesAr_label_kosar" Content="Végösszeg:" Background="#545d6a" Margin="10 10 5 10" Foreground="White"/>
- <TextBox x:Name="teljesAr_tb_kosar" Background="#545d6a" Foreground="White" Margin="5 10 10 10" Width="204" />
- </StackPanel>
- </StackPanel>
- <StackPanel Width="317">
- <Label x:Name="termekNev_label_kosar" Content="Név" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekNev_tb_kosar" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="termekAr_label_kosar" Content="Ár" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekAr_tb_kosar" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="termekLeiras_label_kosar" Content="Leírás" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="termekLeiras_tb_kosar" Background="#545d6a" Foreground="White" Margin="10 10 10 10" Height="93" />
- <Button x:Name="rendel_btn_kosar" Content="Megrendel" Margin="80 10 80 10" Background="#545d6a" Foreground="White" FontSize="18"/>
- </StackPanel>
- </StackPanel>
- <StackPanel x:Name="uzenet_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
- <StackPanel>
- <ListBox x:Name="uzenetek_lb" Background="#545d6a" Width="293" Margin="10" Height="320"/>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Button x:Name="torles_btn" Content="Törlés" Margin="10 10 10 10" Background="#545d6a" Foreground="White" FontSize="18" Width="64"/>
- </StackPanel>
- </StackPanel>
- <StackPanel Width="317">
- <Label x:Name="felado_label" Content="Feladó" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="felado_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="targy_label" Content="Tárgy" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="targy_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="szoveg_label" Content="Üzenet szövege" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="szoveg_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" Height="93" />
- <Button x:Name="valasz_btn" Content="Válasz" Margin="80 10 80 10" Background="#545d6a" Foreground="White" FontSize="18"/>
- </StackPanel>
- </StackPanel>
- <StackPanel x:Name="rendelesek_sp" Orientation="Horizontal" Height="387" Visibility="Collapsed">
- <StackPanel>
- <ListBox x:Name="rendelesek_lb" Background="#545d6a" Width="293" Margin="10" Height="369"/>
- </StackPanel>
- <StackPanel Width="317">
- <Label x:Name="rendelesId_label" Content="Azonosító" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="rendelesId_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="allapot_label" Content="Állapot" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="allapot_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="fizetendo_label" Content="Fizetendő összeg" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="fizetendo_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Button x:Name="torles_btn_rendeles" Content="Rendelés törlése" Margin="80 10 80 10" Background="#545d6a" Foreground="White" FontSize="18"/>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Border>
- </Window>
- fut.xam.cs:
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
- namespace CsomagALL
- {
- /// <summary>
- /// Interaction logic for Futar.xaml
- /// </summary>
- public partial class Futar : Window
- {
- public Futar()
- {
- InitializeComponent();
- }
- private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- this.DialogResult = true;
- }
- private void MenuItem_Click(object sender, RoutedEventArgs e)
- {
- allapot_sp.Visibility = Visibility.Collapsed;
- csomagok_sp.Visibility = Visibility.Visible;
- }
- private void MenuItem_Click_1(object sender, RoutedEventArgs e)
- {
- csomagok_sp.Visibility = Visibility.Collapsed;
- allapot_sp.Visibility = Visibility.Visible;
- }
- }
- }
- fut.xam:
- <Window x:Class="CsomagALL.Futar"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:CsomagALL"
- mc:Ignorable="d"
- ResizeMode="CanMinimize"
- Title="Futar" Height="543.038" Width="558.477" FontSize="14" Background="#04c582" Closing="Window_Closing">
- <Border Background="#2e3137" CornerRadius="20" Margin="20">
- <StackPanel Margin="20,20,20,10">
- <Menu Background="#2e3137" Foreground="White">
- <MenuItem Header="Csomagok" Click="MenuItem_Click">
- </MenuItem>
- <MenuItem Header="Állapot" Click="MenuItem_Click_1">
- </MenuItem>
- </Menu>
- <Separator></Separator>
- <StackPanel x:Name="csomagok_sp" Height="461" Visibility="Visible">
- <Label x:Name="rendeloNev_label" Content="Megrendelő neve:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="rendeloNev_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="rendeloCim_label" Content="Címe:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="rendelocim_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="RendelesID_label" Content="Termék ID:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="RendelesID_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <Label x:Name="fiz_label" Content="Fizetendő:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <TextBox x:Name="fiz_tb" Background="#545d6a" Foreground="White" Margin="10 10 10 10" />
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Button x:Name="sikeres_btn" Content="Sikeres kiszállítás" Margin="10 10 10 10" Background="Green" Foreground="White" FontSize="18"/>
- <Button x:Name="sikertelen_btn" Content="Sikertelen kiszállítás" Margin="10 10 10 10" Background="Red" Foreground="White" FontSize="18"/>
- </StackPanel>
- </StackPanel>
- <StackPanel x:Name="allapot_sp" Orientation="Vertical" Height="387" Visibility="Collapsed">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Label x:Name="allapot_label" Content="Állapot:" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- <Label x:Name="allapotadatkotve_label" Content="" Background="#545d6a" Margin="10 10 10 10" Foreground="White"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Button x:Name="elerheto_btn" Content="Elérhető" Margin="10 10 10 10" Background="Green" Foreground="White" FontSize="18"/>
- <Button x:Name="tulterhelt_btn" Content="Túlterhelt" Margin="10 10 10 10" Background="Gold" Foreground="White" FontSize="18"/>
- <Button x:Name="beteg_btn" Content="Beteg" Margin="10 10 10 10" Background="Red" Foreground="White" FontSize="18"/>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Border>
- </Window>