void Load() { try { if (Registry.CurrentUser.CreateSubKey("Software\\Currency converter").GetValue("LastPage").ToString() == "Calcutator") { Page_Loader.Navigate(Page_Calcutator); } else { Page_Loader.Navigate(Page_Cources); } } catch { Page_Loader.Navigate(Page_Cources); } }
void Calcutator_Click(object sender, RoutedEventArgs e) { TrayOff(); Page_Loader.Navigate(Page_Calcutator); }
void Course_Click(object sender, RoutedEventArgs e) { TrayOff(); Page_Loader.Navigate(Page_Cources); }
void Settings(object sender, RoutedEventArgs e) { TrayOff(); Page_Loader.Navigate(Page_Settings); }