Example #1
0
        private void AllMemberButton_Click(object sender, RoutedEventArgs e)
        {
            MemberServices sr = new MemberServices();

            MembersListGrid.ItemsSource = sr.LoadData();
            MemberIdTextBox.Text        = "";
            MemberNameTextBox.Text      = "";
        }
Example #2
0
        private void MemberRemoveButton_Click(object sender, RoutedEventArgs e)
        {
            MemberServices sr = new MemberServices();
            int            i  = sr.DeleteMember(MemberIdTextBox.Text, MemberNameTextBox.Text);

            MembersListGrid.ItemsSource = sr.LoadData();
            MemberIdTextBox.Text        = "";
            MemberNameTextBox.Text      = "";
        }
Example #3
0
        private void MembersButton_Click(object sender, RoutedEventArgs e)
        {
            SoftwareInfoButton.Background = Brushes.OliveDrab;
            HomeGrid.Visibility           = System.Windows.Visibility.Collapsed;
            MyProfileViewGrid.Visibility  = System.Windows.Visibility.Collapsed;
            MemberGrid.Visibility         = System.Windows.Visibility.Visible;
            PackageGrid.Visibility        = System.Windows.Visibility.Collapsed;
            MembersButton.Background      = Brushes.Green;
            HomeButton.Background         = Brushes.OliveDrab;
            PackagesButton.Background     = Brushes.OliveDrab;
            DecorationButton.Background   = Brushes.OliveDrab;
            DecorationrGrid.Visibility    = System.Windows.Visibility.Collapsed;
            CenterGrid.Visibility         = System.Windows.Visibility.Collapsed;
            SoftwareInfoGrid.Visibility   = System.Windows.Visibility.Collapsed;
            MemberServices sr = new MemberServices();

            MembersListGrid.ItemsSource = sr.LoadData();
            MemberIdTextBox.Text        = "";
            MemberNameTextBox.Text      = "";
        }