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);
 }
Exemplo n.º 4
0
 public ListenerProfile(users user)
 {
     InitializeComponent();
     this.user = user;
     db        = RadioEntities.GetContext();
     db.users.Attach(user);
     DataContext = this.user;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 9
0
 public Signup()
 {
     InitializeComponent();
     db = RadioEntities.GetContext();
 }