public HostInfo(GuestMode guestWindow, employees host) { InitializeComponent(); db = RadioEntities.GetContext(); this.guestWindow = guestWindow; showHostInfo(host); }
public PasswordChange(users user) { InitializeComponent(); this.user = user; db = RadioEntities.GetContext(); db.users.Attach(user); DataContext = this.user; }
public static RadioEntities GetContext() { if (_context == null) { _context = new RadioEntities(); } return(_context); }
public ListenerProfile(users user) { InitializeComponent(); this.user = user; db = RadioEntities.GetContext(); db.users.Attach(user); DataContext = this.user; }
public GuestMode() { InitializeComponent(); db = RadioEntities.GetContext(); AddSorting(); ShowSchedule(); UpdateTable.Style = FindResource("BlueButtonTemplate") as Style; }
public PlayedSongsList(GuestMode guestWindow, schedule schedule) { InitializeComponent(); this.guestWindow = guestWindow; db = RadioEntities.GetContext(); this.schedule = schedule; ShowScheduleInfo(); AddItemsSource(schedule.scheduleCode); AddSorting(); if (Table.Items.Count == 0) { MessageBox.Show("Нет информации о песнях за данный эфир.", "", MessageBoxButton.OK, MessageBoxImage.Information); } }
public MainWindow() { InitializeComponent(); db = RadioEntities.GetContext(); }
public SignupInfo(listeners listener) { InitializeComponent(); db = RadioEntities.GetContext(); this.listener = listener; }
public Signup() { InitializeComponent(); db = RadioEntities.GetContext(); }