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); } }
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); } }