Beispiel #1
0
        private void Handler_ChangeStateIntoErrorConnect()
        {
            Autorization authorization = new Autorization();

            authorization.Show();
            transition = true;
            Close();
        }
Beispiel #2
0
 private void Model_HappenedDisconnectServer()
 {
     Dispatcher.Invoke(() =>
     {
         Autorization authorization = new Autorization();
         authorization.Show();
         MessageBox.Show("Потеря соединения с сервером");
         Transition = true;
         Close();
     });
 }
Beispiel #3
0
        private void Handle_ChangeState()
        {
            switch (model.State)
            {
            case StatesAccountModel.ErrorConnect:
                MessageBox.Show("Потеря соединения с сервером");
                Autorization authorization = new Autorization();
                authorization.Show();
                transition = true;
                Close();
                break;

            case StatesAccountModel.SuccessJoinedToQueue:
                Queue formQueue = new Queue(controller.Client);
                formQueue.Show();
                transition = true;
                Close();
                break;
            }
        }