private void ExitAccount_Click(object sender, RoutedEventArgs e)
        {
            SecurityContext.IdUser = 0;
            AuthorizationInspector authorization = new AuthorizationInspector();

            authorization.Show();
            this.Close();
        }
 private void InspectorGo_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         AuthorizationInspector inspector = new AuthorizationInspector();
         inspector.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #3
0
 private void ExitAccount_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         SecurityContext.CurrentTransport = 0;
         SecurityContext.IdUser           = 0;
         AuthorizationInspector authorization = new AuthorizationInspector();
         authorization.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }