✅ Why is a variable false in project in WPF .Net application even after it should be true? - C#