private void TxtBox_GotFocus(object sender, RoutedEventArgs e) { if (txtBoxWert.Text == 0.ToString("C", uNFI.GetNFI())) { txtBoxWert.Text = string.Empty; } if (Extensions.DeviceFamilyStringExtensions.ToDeviceFamily(Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily) == Models.DeviceFamily.Mobile) { btnSpeichern.Visibility = Visibility.Collapsed; CommandBarSave.Visibility = Visibility.Visible; } //MainPage.Margin = new Thickness(0, -70, 0, 0); }
/// <summary> /// Default Construktor /// </summary> public SaveResult() { this.InitializeComponent(); uNFI = new UserNumberFormat(); var loader = new Windows.ApplicationModel.Resources.ResourceLoader(); btnSpeichern.Content = loader.GetString("BtnSave"); comboBox.SelectedIndex = IndexComboBox; txtBoxWert.Text = 0.ToString("C", uNFI.GetNFI()); //optionsBuilder = new DbContextOptionsBuilder<Store.DataBase.DataBaseEF.DataBaseFile>(); //optionsBuilder.UseSqlite("Filename=Balance.db"); //dataBase = new Store.DataBase.DataBaseEF.DataBaseFile(optionsBuilder.Options); dataBase = new Store.DataBase.DataBaseEF.DataBaseFile(); this.Loaded += SaveResult_Loaded; }