private void Window_Loaded(object sender, RoutedEventArgs e) { _timer.Tick += new EventHandler(dispatcherTimer_Tick); _timer.Interval = new TimeSpan(0, 0, 2); _timer.Start(); if (MyUserName.Content.ToString() == _dal.CanCreateAdmin().NickName) { _adminOnline = true; } else { _adminOnline = false; } CreateUsersUI(); ShowUsersInfo(); _counter_Users = _dal.GetAllUsers().Count(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { if (_dal.CanCreateAdmin() == null) { _dal.CreateAdmin(); } w2.Show(); w2.Focus(); w2.Owner = this; w2.Left = this.Left + 40; }