private void LocalizeWindow() { GridPreviewerStrings names = new GridPreviewerStrings(); Text = names.Form.Text.GetString(); // Panel uiPnl_DtGrid_TxtBx.Text = names.Ui.PanelDatasetGrid.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.AutoSizeColumnsMode, uiPnl_AutoSize_ComBx); uiPnl_AutoSize_TxtBx.Text = names.Ui.PanelAutoSizeColumnsMode.GetString(); uiPnl_Edit_TxtBx.Text = names.Ui.PanelFastEdit.GetString(); uiPnl_OperT_TxtBx.Text = names.Ui.PanelOperationType.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.Operation, uiPnl_OperT_ComBx); uiPnl_StartIdx_TxtBx.Text = names.Ui.PanelStartIndex.GetString(); uiPnl_EndIdx_TxtBx.Text = names.Ui.PanelEndIndex.GetString(); UpdateUiBySwitchingOperationType((Operation)UiControls.TryGetSelectedIndex(uiPnl_OperT_ComBx)); uiPnl_Reset_Btn.Text = names.Ui.PanelReset.GetString(); uiPnl_Perform_Btn.Text = names.Ui.PanelPerform.GetString(); uiPnl_Refresh_Btn.Text = names.Ui.PanelRefresh.GetString(); uiPnl_Save_Btn.Text = names.Ui.PanelSave.GetString(); uiPnl_Ok_Btn.Text = names.Ui.PanelOk.GetString(); // Grid uiGrid_DtSet_TxtBx.Text = names.Ui.DatasetTitle.GetString(); // Preview uiChart_Prv_TxtBx.Text = names.Ui.PreviewTitle.GetString(); }
private void LocalizeWindow() { ChartSettingsStrings names = new ChartSettingsStrings(); Text = names.Form.Text.GetString(); // Common uiTop_ApplyTo_TxtBx.Text = names.Ui.GeneralApplyTo.GetString(); uiBtm_Ok_Btn.Text = names.Ui.GeneralOk.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.CurveApply, uiTop_ApplyTo_ComBx); // Tab: Chart uiCtr_Chart_TbPg.Text = names.Ui.ChartTitle.GetString(); EnumsLocalizer.Populate(CSharpEnumerable.AntiAliasingStyles, uiCtrChart_Aa_ComBx); EnumsLocalizer.Localize(LocalizableEnumerator.Boolean, uiCtrChart_SupEx_ComBx); EnumsLocalizer.Populate(CSharpEnumerable.Color, uiCtrChart_BkCol_ComBx); // Tab: Chart area uiCtr_Area_TbPg.Text = names.Ui.ChartAreaTitle.GetString(); uiCtrArea_ChA_TxtBx.Text = names.Ui.ChartAreaText.GetString(); uiCtrArea_Axes_TxtBx.Text = names.Ui.ChartAreaAxes.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.Boolean, uiCtrArea_3d_ComBx); EnumsLocalizer.Populate(CSharpEnumerable.Color, uiCtrArea_BkCol_ComBx); EnumsLocalizer.Localize(LocalizableEnumerator.Boolean, uiCtrArea_En_ComBx); EnumsLocalizer.Populate(CSharpEnumerable.Color, uiCtrArea_LnCol_ComBx); EnumsLocalizer.Populate(CSharpEnumerable.ChartDashStyle, uiCtrArea_LnStyle_ComBx); EnumsLocalizer.Populate(CSharpEnumerable.ChartAreaAxis, uiCtrArea_Axis_ComBx); EnumsLocalizer.Populate(CSharpEnumerable.ChartAreaGrid, uiCtrArea_Grid_ComBx); // Tab: Series uiCtr_Srs_TbPg.Text = names.Ui.SeriesTitle.GetString(); EnumsLocalizer.Populate(CSharpEnumerable.Color, uiCtrSrs_Color_ComBx); EnumsLocalizer.Populate(CSharpEnumerable.ChartDashStyle, uiCtrSrs_BorStyle_ComBx); EnumsLocalizer.Populate(CSharpEnumerable.SeriesChartType, uiCtrSrs_ChT_ComBx); }
private void LocalizeWindow() { LanguageSelectorStrings names = new LanguageSelectorStrings(); Text = names.Form.Text.GetString(); // Ui EnumsLocalizer.Localize(LocalizableEnumerator.Languages, uiUp_LstBx); }
private void UpdateUiBySettings() { UiControls.TrySelectTab(uiL_TbCtrl, (int)Phenomenon.Peek); UiControls.TrySelectTab(uiR_TbCtrl, 0); ChartAssist.SetDefaultSettings(uiRChart_Chart); EnumsLocalizer.Localize(LocalizableEnumerator.DataSetCurveType, uiRChartDown_CrvT_ComBx); UiControls.TrySetSelectedIndex(uiRChartDown_CrvT_ComBx, (int)DataSetCurveType.Ideal); uiRChartDown_CrvIdx_Num.Minimum = 0; uiRChartDown_CrvIdx_Num.Maximum = Settings.Ui.CurvesNo - 1; UiControls.TrySetValue(uiRChartDown_CrvIdx_Num, Settings.Ui.CurvesNo / 2); EnumsLocalizer.Localize(LocalizableEnumerator.Phenomenon, uiRChartDown_Phen_ComBx); UiControls.TrySetSelectedIndex(uiRChartDown_Phen_ComBx, (int)Phenomenon.Peek); EnumsLocalizer.PopulateComboBox(Lists.Cast <double, string>(Noises), uiRChartDown_Noises_ComBx); UiControls.TrySetSelectedIndex(uiRChartDown_Noises_ComBx, 0); EnumsLocalizer.Localize(LocalizableEnumerator.MeanType, uiRChartDown_MeanT_ComBx); UiControls.TrySetSelectedIndex(uiRChartDown_MeanT_ComBx, (int)MeanType.Tolerance); GridAssist.SetDefaultSettings(uiLPeek_Grid); GridAssist.SetDefaultSettings(uiLSat_Grid); }
private void LocalizeWindow() { MeansSettingsStrings names = new MeansSettingsStrings(); Text = names.Form.Text.GetString(); uiGrid_Geo_TxtBx.Text = names.Ui.Geometric.GetString(); uiGrid_GeoVar_TxtBx.Text = names.Ui.Variant.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.GeometricMeanVariant, uiGrid_GeoVar_ComBx); uiGrid_Agm_TxtBx.Text = names.Ui.AGM.GetString(); uiGrid_AgmVar_TxtBx.Text = names.Ui.Variant.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.GeometricMeanVariant, uiGrid_AgmVar_ComBx); uiGrid_Her_TxtBx.Text = names.Ui.Heronian.GetString(); uiGrid_HerVar_TxtBx.Text = names.Ui.Variant.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.GeometricMeanVariant, uiGrid_HerVar_ComBx); uiGrid_Har_TxtBx.Text = names.Ui.Harmonic.GetString(); uiGrid_HarVar_TxtBx.Text = names.Ui.Variant.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.StandardMeanVariant, uiGrid_HarVar_ComBx); uiGrid_Gen_TxtBx.Text = names.Ui.Generalized.GetString(); uiGrid_GenVar_TxtBx.Text = names.Ui.Variant.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.StandardMeanVariant, uiGrid_GenVar_ComBx); uiGrid_GenRank_TxtBx.Text = names.Ui.Rank.GetString(); UiControls.TryRefreshOfProperty(uiGrid_GenRank_Num); uiGrid_Toler_TxtBx.Text = names.Ui.Tolerance1.GetString(); uiGrid_TolerTol_TxtBx.Text = names.Ui.Tolerance2.GetString(); UiControls.TryRefreshOfProperty(uiGrid_TolerTol_Num); uiGrid_TolerFin_TxtBx.Text = names.Ui.FinisherFunction.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.MeanType, uiGrid_TolerFin_ComBx); uiGrid_Central_TxtBx.Text = names.Ui.Central.GetString(); uiGrid_CentralMass_TxtBx.Text = names.Ui.MassPercent.GetString(); UiControls.TryRefreshOfProperty(uiGrid_CentralMass_Num); uiGrid_NN_TxtBx.Text = names.Ui.NN.GetString(); uiGrid_NNk_TxtBx.Text = names.Ui.Amount.GetString(); UiControls.TryRefreshOfProperty(uiGrid_NNk_Num); uiGrid_NW_TxtBx.Text = names.Ui.NadarayaWatson.GetString(); uiGrid_NWVar_TxtBx.Text = names.Ui.Variant.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.NadarayaWatsonVariant, uiGrid_NWVar_ComBx); uiGrid_NWKerT_TxtBx.Text = names.Ui.KernelType.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.KernelType, uiGrid_NWKerT_ComBx); uiGrid_NWKerS_TxtBx.Text = names.Ui.KernelSize.GetString(); ui_Ok_Btn.Text = names.Ui.OK.GetString(); }
private void LocalizeWindow() { StatisticalAnalysisStrings names = new StatisticalAnalysisStrings(); Text = names.Form.Text.GetString(); // Standard deviation uiL_StdDev_TxtBx.Text = names.Ui.StandardDeviationTitle.GetString(); uiL_Peek_TbPg.Text = names.Ui.StandardDeviationPeek.GetString(); uiL_Sat_TbPg.Text = names.Ui.StandardDeviationSaturation.GetString(); GridAssist.AlterColumnHeader(uiLPeekGrid_NoiseA_Col, names.Ui.StandardDeviationNoise.GetString() + ' ' + Noises[0], true); GridAssist.AlterColumnHeader(uiLPeekGrid_NoiseB_Col, names.Ui.StandardDeviationNoise.GetString() + ' ' + Noises[1], true); GridAssist.AlterColumnHeader(uiLPeekGrid_NoiseC_Col, names.Ui.StandardDeviationNoise.GetString() + ' ' + Noises[2], true); GridAssist.AlterColumnHeader(uiLPeekGrid_NoiseD_Col, names.Ui.StandardDeviationNoise.GetString() + ' ' + Noises[3], true); GridAssist.AlterColumnHeader(uiLSatGrid_NoiseA_Col, names.Ui.StandardDeviationNoise.GetString() + ' ' + Noises[0], true); GridAssist.AlterColumnHeader(uiLSatGrid_NoiseB_Col, names.Ui.StandardDeviationNoise.GetString() + ' ' + Noises[1], true); GridAssist.AlterColumnHeader(uiLSatGrid_NoiseC_Col, names.Ui.StandardDeviationNoise.GetString() + ' ' + Noises[2], true); GridAssist.AlterColumnHeader(uiLSatGrid_NoiseD_Col, names.Ui.StandardDeviationNoise.GetString() + ' ' + Noises[3], true); // Preview uiR_Prv_TxtBx.Text = names.Ui.PreviewTitle.GetString(); uiR_Chart_TbPg.Text = names.Ui.PreviewChart.GetString(); EnumsLocalizer.Localize(LocalizableEnumerator.DataSetCurveType, uiRChartDown_CrvT_ComBx); UiControls.TrySetSelectedIndex(uiRChartDown_CrvT_ComBx, (int)DataSetCurveType.Ideal); EnumsLocalizer.Localize(LocalizableEnumerator.Phenomenon, uiRChartDown_Phen_ComBx); UiControls.TrySetSelectedIndex(uiRChartDown_Phen_ComBx, (int)Phenomenon.Peek); EnumsLocalizer.Localize(LocalizableEnumerator.MeanType, uiRChartDown_MeanT_ComBx); UiControls.TrySetSelectedIndex(uiRChartDown_MeanT_ComBx, (int)MeanType.NN); uiRChartDown_DtSet_Btn.Text = names.Ui.PreviewDataSet.GetString(); uiRChartUp_CrvIdx_TxtBx.Text = names.Ui.PreviewCurveIndex.GetString(); uiRChartUp_CrvT_TxtBx.Text = names.Ui.PreviewCurveType.GetString(); uiRChartUp_Phen_TxtBx.Text = names.Ui.PreviewPhenomenon.GetString(); uiRChartUp_Surr_TxtBx.Text = names.Ui.PreviewNoise.GetString(); uiRChartUp_MeanT_TxtBx.Text = names.Ui.PreviewMeanType.GetString(); uiRChartUp_DtSet_TxtBx.Text = names.Ui.PreviewDataSetSelection.GetString(); }
private void LocalizeWindow() { MainWindowStrings names = new MainWindowStrings(); int selectedIndex = 0; Text = names.Form.Text.GetString(); // Menu: Program uiMenu_Prg.Text = names.Ui.Menu.ProgramTitle.GetString(); uiMenuPrg_StatAnal.Text = names.Ui.Menu.ProgramStatisticalAnalysis.GetString(); uiMenuPrg_Lang.Text = names.Ui.Menu.ProgramSelectLanguage.GetString(); uiMenuPrg_About.Text = names.Ui.Menu.ProgramAbout.GetString(); uiMenuPrg_Exit.Text = names.Ui.Menu.ProgramExit.GetString(); // Menu: File uiMenu_File.Text = names.Ui.Menu.FileTitle.GetString(); uiMenuFile_Import.Text = names.Ui.Menu.FileImport.GetString(); // Menu: Panel uiMenu_Pnl.Text = names.Ui.Menu.PanelTitle.GetString(); uiMenuPnl_KeepProp.Text = names.Ui.Menu.PanelKeepProportions.GetString(); uiMenuPnl_Hide.Text = names.Ui.Menu.PanelHide.GetString(); uiMenuPnl_Lock.Text = names.Ui.Menu.PanelLock.GetString(); // Menu: Means uiMenu_Means.Text = names.Ui.Menu.MeansTitle.GetString(); uiMenuMeans_Settings.Text = names.Ui.Menu.MeansSettings.GetString(); // Menu: Chart uiMenu_Chart.Text = names.Ui.Menu.ChartTitle.GetString(); uiMenuChart_Settings.Text = names.Ui.Menu.ChartSettings.GetString(); // Tab: Ideal uiPnlId_TbPg.Text = names.Ui.Panel.IdealTitle.GetString(); uiPnlId_IdealCrvScaff_TxtBx.Text = names.Ui.Panel.IdealPatternCurveScaffold.GetString(); uiPnlId_CrvScaff1_TxtBx.Text = names.Ui.Panel.IdealCurveScaffold1.GetString(); uiPnlId_Def_Btn.Text = names.Ui.Panel.IdealScaffoldNone.GetString(); UpdateUiByCurveScaffold(); uiPnlId_CrvsSet_TxtBx.Text = names.Ui.Panel.IdealCurvesSet.GetString(); uiPnlId_Crvs1No_TxtBx.Text = names.Ui.Panel.IdealCurves1No.GetString(); uiPnlId_StartX_TxtBx.Text = names.Ui.Panel.IdealStartX.GetString(); uiPnlId_EndX_TxtBx.Text = names.Ui.Panel.IdealEndX.GetString(); uiPnlId_Dens_TxtBx.Text = names.Ui.Panel.IdealDensity.GetString(); UiControls.TryRefreshOfProperty(uiPnlId_Crvs1No_Num); UiControls.TryRefreshOfProperty(uiPnlId_StartX_Num); UiControls.TryRefreshOfProperty(uiPnlId_EndX_Num); UiControls.TryRefreshOfProperty(uiPnlId_Dens_Num); uiPnlId_GenSet_Btn.Text = names.Ui.Panel.IdealGenerateSet.GetString(); // Tab: Modified uiPnlMod_TbPg.Text = names.Ui.Panel.ModifiedTitle.GetString(); uiPnlMod_DtSetCtrl_TxtBx.Text = names.Ui.Panel.ModifiedDataSetControl.GetString(); uiPnlMod_CrvT_TxtBx.Text = names.Ui.Panel.ModifiedCurveType.GetString(); selectedIndex = UiControls.TryGetSelectedIndex(uiPnlMod_CrvT_ComBx); EnumsLocalizer.Localize(LocalizableEnumerator.DataSetCurveType, uiPnlMod_CrvT_ComBx); UiControls.TrySetSelectedIndex(uiPnlMod_CrvT_ComBx, selectedIndex); uiPnlMod_CrvIdx_TxtBx.Text = names.Ui.Panel.ModifiedCurveIndex.GetString(); if (DataChart.IdealCurve.Points.Count != 0) { UiControls.TryRefreshOfProperty(uiPnlMod_CrvIdx_Num); } uiPnlMod_ShowDtSet_Btn.Text = names.Ui.Panel.ModifiedShowDataSet.GetString(); uiPnlMod_GsNoise_TxtBx.Text = names.Ui.Panel.ModifiedGaussianNoise.GetString(); uiPnlMod_CrvNo_TxtBx.Text = names.Ui.Panel.ModifiedCurvesNo.GetString(); UiControls.TryRefreshOfProperty(uiPnlMod_CrvNo_Num); uiPnlMod_Surr_TxtBx.Text = names.Ui.Panel.ModifiedSurrounding.GetString(); UiControls.TryRefreshOfProperty(uiPnlMod_Surr_Num); uiPnlMod_Malform_Btn.Text = names.Ui.Panel.ModifiedMalform.GetString(); // Tab: Average uiPnlAvg_TbPg.Text = names.Ui.Panel.AverageTitle.GetString(); uiPnlAvg_Avg_TxtBx.Text = names.Ui.Panel.AverageAveraging.GetString(); uiPnlAvg_MeanT_TxtBx.Text = names.Ui.Panel.AverageMeanType.GetString(); selectedIndex = UiControls.TryGetSelectedIndex(uiPnlAvg_MeanT_ComBx); EnumsLocalizer.Localize(LocalizableEnumerator.MeanType, uiPnlAvg_MeanT_ComBx); UiControls.TrySetSelectedIndex(uiPnlAvg_MeanT_ComBx, selectedIndex); uiPnlAvg_Crvs2No_TxtBx.Text = names.Ui.Panel.AverageCurves2No.GetString(); UiControls.TryRefreshOfProperty(uiPnlAvg_Crvs2No_Num); uiPnlAvg_StdDev1_TxtBx.Text = names.Ui.Panel.AverageStandardDeviation1.GetString(); uiPnlAvg_StdDev2_TxtBx.Text = double.NaN.ToString(Thread.CurrentThread.CurrentCulture); uiPnlAvg_Apply_Btn.Text = names.Ui.Panel.AverageApply.GetString(); }