private void Window_ContentRendered(object sender, EventArgs e) { if (Environment.OSVersion.Version.Major <= 6 && Environment.OSVersion.Version.Minor < 2) { BtnWinApps.IsEnabled = false; // DISABLED FOR WIN7 } BtnChrome.IsEnabled = Window7.ChromeExists(); UpdateCheckAsync(); }
private void BtnWinOpener(object sender, RoutedEventArgs e) { Window w = new Window(); if (Equals(sender, BtnWinApps)) { w = new Window1(); } else if (Equals(sender, BtnAutoruns)) { w = new Window2(); } else if (Equals(sender, BtnServices)) { w = new Window3(); } else if (Equals(sender, BtnHostsEditor)) { w = new Window4(); } else if (Equals(sender, BtnCleaner)) { w = new Window5(); } else if (Equals(sender, BtnSoftware)) { w = new Window6(); } else if (Equals(sender, BtnChrome)) { w = new Window7(); } Hide(); w.ShowDialog(); Show(); }