예제 #1
0
        //переходим к рабочему окну
        ///<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();
        }
예제 #2
0
 private void GoToWork(WorkWindow work)
 {
     work.Show();
     this.Close();
 }