示例#1
0
        private void StatButton_Click(object sender, RoutedEventArgs e)
        {
            this._menu.OngletUserControl = new StatsUserControl();

            UnselectedButtonsColorization(StatButton);
            MemberButton.Background = SolidColorBrushHelper.DarkGreen();
        }
示例#2
0
        private void TournamentButtonClick(object sender, RoutedEventArgs e)
        {
            this._menu.OngletUserControl = new TournamentUserControl(this._menu.Save);

            UnselectedButtonsColorization(TournamentButton);
            TournamentButton.Background = SolidColorBrushHelper.DarkGreen();
        }
示例#3
0
        public MenuUserControl(Save save, User user)
        {
            InitializeComponent();
            InitializationButtons();
            this._menu = new MenuVM(save, user);
            SideMenuGrid.Visibility = Visibility.Hidden;

            DataContext             = this._menu;
            MemberButton.Background = SolidColorBrushHelper.DarkGreen();
        }
示例#4
0
        private void MemberButtonClick(object sender, RoutedEventArgs e)
        {
            PaymentComboBox.Visibility = LoisirComboBox.Visibility = ClassementButton.Visibility = Visibility.Visible;
            this._memberSelected       = !this._memberSelected;

            MemberButton.Background = this._memberSelected ? SolidColorBrushHelper.DarkGreen() : SolidColorBrushHelper.Green();

            //Reset coulours des autres buttons
            EmployeeButton.Background = SolidColorBrushHelper.Green();
            this._employeeSelected    = false;

            this._memberVM.SelectedUserControl = new MemberListUserControl(this._memberVM.Save.Peoples, this._memberVM.Save);
        }
示例#5
0
        public MemberUserControl(Save save)
        {
            this._memberVM = new MemberVM(save);

            this._employeeSelected = false;
            this._memberSelected   = true;
            this._alfabetSorted    = false;
            this._classementSorted = false;
            this._activeFilters    = new List <Filter>();
            InitializeComponent();

            MemberButton.Background = this._memberSelected ? SolidColorBrushHelper.DarkGreen() : SolidColorBrushHelper.Green();

            DataContext = this._memberVM;
        }