示例#1
0
        private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserControl usc = null;

            GridMain.Children.Clear();

            switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
            {
            case "ItemHome":
                usc = new UserControlHome();
                GridMain.Children.Add(usc);
                break;

            case "ItemCreate":
                usc = new UserControlCreate();

                GridMain.Children.Add(usc);
                break;

            case "ItemImport":
                usc = new UserControlImport();
                GridMain.Children.Add(usc);
                break;

            case "ItemConsole":
                usc = new UserControlConsole();
                GridMain.Children.Add(usc);
                break;

            default:
                break;
            }
        }
示例#2
0
        private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            UserControl usc = null;

            GridMain.Children.Clear();

            switch (((ListViewItem)((ListView)sender).SelectedItem).Name)
            {
            case "ItemHome":
                usc = new UserControlHome();
                GridMain.Children.Add(usc);
                break;

            case "ItemCalendario":
                usc = new UserControlCalendario();
                GridMain.Children.Add(usc);
                break;

            case "ItemReserva":
                usc = new UserControlReserva();
                GridMain.Children.Add(usc);
                break;

            case "ItemStatus":
                usc = new UserControlStatus();
                GridMain.Children.Add(usc);
                break;

            case "ItemHorario":
                usc = new UserControlHorario();
                GridMain.Children.Add(usc);
                break;

            case "ItemRelatorio":
                usc = new UserControlRelatorio();
                GridMain.Children.Add(usc);
                break;

            case "ItemBranco":
                usc = new UserControlBranco();
                GridMain.Children.Add(usc);
                break;

            default:
                break;
            }
        }