Пример #1
0
 private void LoginEvent(object sender, MessageEvent.MessageEventArgs e)
 {
     login1.ClearPassword();
     VisibleForm(false);
     if (content == null)
     {
         content = new Index();
     }
     content.ShowDialog();
 }
Пример #2
0
        private void Dispatcher_MessageEvent(object sender, MessageEvent.MessageEventArgs e)
        {
            switch (e.Message)
            {
            case nameof(Messages.Logout):
                content.Hide();
                VisibleForm(true);
                break;

            case nameof(Messages.Exit):
                System.Environment.Exit(0);
                break;
            }
        }