private void StatButton_Click(object sender, RoutedEventArgs e) { this._menu.OngletUserControl = new StatsUserControl(); UnselectedButtonsColorization(StatButton); MemberButton.Background = SolidColorBrushHelper.DarkGreen(); }
private void TournamentButtonClick(object sender, RoutedEventArgs e) { this._menu.OngletUserControl = new TournamentUserControl(this._menu.Save); UnselectedButtonsColorization(TournamentButton); TournamentButton.Background = SolidColorBrushHelper.DarkGreen(); }
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(); }
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); }
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; }