public WinVolunteers() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); Load(); #region Добавил пункты сортировки List <SortByClass> sorts = new List <SortByClass>(); sorts.Add(new SortByClass { Id = "1", Value = "Фамилия" }); sorts.Add(new SortByClass { Id = "2", Value = "Имя" }); sorts.Add(new SortByClass { Id = "3", Value = "Страна" }); sorts.Add(new SortByClass { Id = "4", Value = "Пол" }); CmbSortBy.ItemsSource = sorts; CmbSortBy.DisplayMemberPath = "Value"; CmbSortBy.SelectedValuePath = "Id"; CmbSortBy.SelectedIndex = 0; #endregion }
public WinSponsorThanks() { InitializeComponent(); LblRunner.Content = LocalStorage.SelectedRunnerForSponsorShip.Runner; lblCharityName.Content = LocalStorage.SelectedRunnerForSponsorShip.CharityName; LblAmount.Content = "$" + LocalStorage.SelectedRunnerForSponsorShip.Amount.ToString(); LocalStorage.TimeCalc(LblTime); }
public WinSponsor() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); LoadRunner(); CharityInform.CharityName = ""; CharityInform.CharityDesc = ""; CmbRunners.SelectedIndex = 0; }
public WinCharitiesManage() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); LoadAll(); LocalStorage.CharityClass.CharityName = ""; LocalStorage.CharityClass.CharityDesc = ""; LocalStorage.CharityClass.CharityLogo = ""; LocalStorage.CharityClass.CharityId = ""; }
public WinEditAddCharity() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); if (LocalStorage.CharityClass.CharityName != "" && LocalStorage.CharityClass.CharityName != " " && LocalStorage.CharityClass.CharityName != null) { TxtName.Text = LocalStorage.CharityClass.CharityName; TxtDesc.Text = LocalStorage.CharityClass.CharityDesc; TxtSource.Text = LocalStorage.CharityClass.CharityLogo; string path = Assembly.GetExecutingAssembly().Location.Replace("bin\\Debug\\Marathon.exe", TxtSource.Text); ImgLogo.Source = new BitmapImage(new Uri(path)); } }
public WinRunnersInfoManage() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); EmailGrid.Visibility = Visibility.Collapsed; #region подготовка для сортировки List <SortBy> sorts = new List <SortBy>(); sorts.Add(new SortBy { Id = "1", Value = "Фамилия" }); sorts.Add(new SortBy { Id = "2", Value = "Имя" }); sorts.Add(new SortBy { Id = "3", Value = "Email" }); CmbSortBy.ItemsSource = sorts; CmbSortBy.DisplayMemberPath = "Value"; CmbSortBy.SelectedValuePath = "Id"; CmbSortBy.SelectedIndex = 0; using (var db = new MarathonDBEntities1()) { var Status = db.RegistrationStatus.ToList(); CmbStatus.ItemsSource = Status; CmbStatus.DisplayMemberPath = "RegistrationStatus1"; CmbStatus.SelectedValuePath = "RegistrationStatusId"; var Distance = db.EventType.ToList(); CmbDistance.ItemsSource = Distance; CmbDistance.DisplayMemberPath = "EventTypeName"; CmbDistance.SelectedValuePath = "EventTypeId"; } #endregion CmbStatus.SelectedIndex = 0; CmbDistance.SelectedIndex = 0; Load(); }
public WinAboutMarathon() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); Load(); }
public WinInventory() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinRunnerRaceResults() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); LoadResults(); }
public WinLoadVolunteers() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinAdminMenu() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinCoordinatorMenu() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinRunnerRegThanks() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinCharityList() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); LoadAll(); }
public WinLogin() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinRegAsRunner() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinInteractiveMap() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); LoadInfo(); }
public MainWindow() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinHowLongIsMarathon() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); LoadData(); }
public WinRunnerSponsorship() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); Load(); }
public WinArrival() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinRunnerProfileEdit() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); LoadAll(); }
public WinMoreInfo() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); }
public WinRegForTheMarathon() { InitializeComponent(); LocalStorage.TimeCalc(LblTime); LoadCharity(); }