//переходим к рабочему окну ///<summary> ///method that goes to another window ///</summary> private void GoToWork(User user) { Window window; switch (user.Type) { case Librarian.TYPE: window = new LibrarianWorkWindow(user.CardNumber); break; default: window = new WorkWindow(user.CardNumber); break; } window.Show(); this.Close(); }
private void GoToWork(WorkWindow work) { work.Show(); this.Close(); }