private void ToLogin(object sender, MouseButtonEventArgs e) { Hide(); var logInWindow = new LogInWindow() { Top = Top, Left = Left }; logInWindow.Show(); }
private void ButtonLogOut_OnClick(object sender, RoutedEventArgs e) { Users.GetInstance().Find(TbAccountName.Text).IsActive = false; Hide(); var logInWindow = new LogInWindow() { Top = Top, Left = Left }; logInWindow.Show(); }