public PageReceipt() { this.InitializeComponent(); txtFooter.Text = App.GetAppTextFooter(); //Load suppliers in ComboBox SupplierOptions = new ObservableCollection <SupplierItem>(); DBOptionsManager.GetAllSuppliersList(SupplierOptions); _SelectedSupplier = SupplierOptions[0]; SelectedSupplier = SupplierOptions[0]; //Load packaged materials in ComboBox PackagedMaterialOptions = new ObservableCollection <PackagedMaterialItem>(); DBOptionsManager.GetEnabledPackMaterialsList(PackagedMaterialOptions); _SelectedPackagedMaterial = PackagedMaterialOptions[0]; SelectedPackagedMaterial = PackagedMaterialOptions[0]; try { Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); encoding = Encoding.GetEncoding("windows-1253"); } catch (Exception ex) { App.PrintOkMessage(ex.Message, ResourceLoader.GetForViewIndependentUse("Resources").GetString("titleEncodingError")); } NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Required; }
public PageScale() { try { this.InitializeComponent(); txtScaleName.Text = AppSettings.ScaleName + " (" + AppSettings.LCcapacity + ")"; txtFooter.Text = App.GetAppTextFooter(); //IoTCore.SerialCOM.SerialConfig(); string temp = App.s.CreateZeroPoint(); double zeroPoint = Double.Parse(temp); App.s.zeroPointString = temp + AppSettings.TrailingUnit; SetupScaleTimer(); //By authenticated access if (App.isAuthenticated) { //Check printer settings if (AppSettings.SumPrints > 1) { step = 0; sum = 0; pallet = 0; txtSum.Text = ResourceLoader.GetForCurrentView().GetString("lblPallet") + pallet.ToString() + " - " + ResourceLoader.GetForCurrentView().GetString("Step") + step.ToString() + "/" + AppSettings.SumPrints + " - " + ResourceLoader.GetForCurrentView().GetString("lblTotal") + sum.ToString() + AppSettings.TrailingUnit; } DisplayUtilities(); //Load materials in ComboBox MaterialOptions = new ObservableCollection <PackagedMaterialItem>(); DBOptionsManager.GetEnabledPackMaterialsList(MaterialOptions); _SelectedMaterial = MaterialOptions[0]; SelectedMaterial = MaterialOptions[0]; //Load empty lot LotOptions = new ObservableCollection <LotItem>(); RaisePropertyChanged("LotOptions"); //Load suppliers in ComboBox SupplierOptions = new ObservableCollection <SupplierItem>(); DBOptionsManager.GetAllSuppliersList(SupplierOptions); _SelectedSupplier = SupplierOptions[0]; SelectedSupplier = SupplierOptions[0]; //Load some labels LoadLabelsFiles(); //we want to save the state of pagescale NavigationCacheMode = NavigationCacheMode.Required; } else { HideUtilities(); } } catch (Exception ex) { App.PrintOkMessage(ex.Message, ResourceLoader.GetForViewIndependentUse("Resources").GetString("titleErrorOnLoadScale")); } }
public PagePlan() { this.InitializeComponent(); //Load materials in ComboBox MaterialOptions = new ObservableCollection <PackagedMaterialItem>(); DBOptionsManager.GetEnabledPackMaterialsList(MaterialOptions); _SelectedMaterial = MaterialOptions[0]; SelectedMaterial = MaterialOptions[0]; txtFooter.Text = App.GetAppTextFooter(); NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Required; }