/// Returns to the Check Window /// Deletes the current instance; /// Enables the close boolean to enable closure /// Reveals the Check Window /// Closes current window private void Return_OnClick(object sender, RoutedEventArgs e) { if (PIN.Password.Length == 4) { instance = null; close = true; Success LoggedIn = Success.succeed; this.Close(); } }
private void end() { instance = null; close = true; if (global.GPS) { Easy easy = Easy.ez; } else { Difficult difficult = Difficult.diff; } Close(); }