예제 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int index = int.Parse(((Button)e.Source).Uid);

            GridCursor.Margin = new Thickness(0, (80 * index), 0, 0);
            UserControl usc = null;

            Cotu.Children.Clear();
            switch (index)
            {
            case 1:
                usc = new Transmission();
                Cotu.Children.Add(usc);
                break;

            case 2:
                usc = new History();
                Cotu.Children.Add(usc);
                break;

            case 3:
                usc = new DeleteRecords();
                //   usc = new DeleteUsers();
                Cotu.Children.Add(usc);
                break;

            case 4:
                usc = new password(_loggedUser);
                Cotu.Children.Add(usc);
                break;

            case 5:
                usc = new InfoPage(_loggedUser);
                Cotu.Children.Add(usc);
                break;
            }
        }