internal VisibilitySessionsModalWindow(LocalizationContext context)
 {
     InitializeComponent();
     _localizationContext = context;
     LoadSessions();
     SetListView();
 }
예제 #2
0
        private void LocalizeComponent()
        {
            try
            {
                context = new LocalizationContext();

                //Captions
                this.Text = context.WindowCaption;

                //Labels
                this.SurfaceLabel.Text        = context.SurfaceLabel;
                this.lbl3DProfiles.Text       = context.ArcSceneParamsLabel;
                this.lblProfiles.Text         = context.ProfilesLabel;
                this.BuildingsHightLabel.Text = context.HightLablel;
                this.HydroHightLabel.Text     = context.HightLablel;
                this.PlantsHightLablel.Text   = context.HightLablel;
                this.TransportHightLabel.Text = context.HightLablel;
                this.BuildingsLayerLabel.Text = context.BuildingsLayerLabel;
                this.HydroLayerLabel.Text     = context.HydroLayerLabel;
                this.PlantsLayerLabel.Text    = context.PlantsLayerLabel;
                this.TransportLayerLabel.Text = context.TransportLayerLabel;
                this.ProfilesTabPage.Text     = context.Generate3DSceneTabHeader;
                this.GenerateImageTab.Text    = context.GenerateImageTabHeader;

                this.surfaceLabels.Text = context.SurfacessLabel;


                //Buttons
                this.GenerateButton.Text = context.GenerateButton;
            }
            catch { MessageBox.Show("No Localization.xml found or there is an error during loading. Coordinates Converter window is not fully localized."); }
        }
예제 #3
0
        private void LocalizeComponent()
        {
            log.InfoEx("> LocalizeComponent START");
            try
            {
                context = new LocalizationContext();

                //Captions
                this.Text = context.WindowCaption;

                //Labels
                this.SurfaceLabel.Text        = context.SurfaceLabel;
                this.lbl3DProfiles.Text       = context.ArcSceneParamsLabel;
                this.lblProfiles.Text         = context.ProfilesLabel;
                this.BuildingsHight.Text      = context.HightLablel;
                this.HydroHightLabel.Text     = context.HightLablel;
                this.PlantsHightLablel.Text   = context.HightLablel;
                this.TransportHightLabel.Text = context.HightLablel;
                this.BuildingsLayerLabel.Text = context.BuildingsLayerLabel;
                this.HydroLayerLabel.Text     = context.HydroLayerLabel;
                this.PlantsLayerLabel.Text    = context.PlantsLayerLabel;
                this.TransportLayerLabel.Text = context.TransportLayerLabel;
                this.DraperyLayer.Text        = context.DraperyLayerLabel;
                this.ProfilesTabPage.Text     = context.Generate3DSceneTabHeader;
                this.GenerateImageTab.Text    = context.GenerateImageTabHeader;

                this.surfaceLabels.Text = context.SurfacessLabel;
                this.lblZFactor.Text    = context.lblZFactor;

                //Buttons
                this.GenerateButton.Text = context.GenerateButton;
                toolTip.SetToolTip(btnRefreshLayers, context.ButtonUpdateToolTip);
                this.AddSurface.ToolTipText    = context.ButtonAddSurfaceToolTip;
                this.RemoveSurface.ToolTipText = context.ButtonRemoveSurfaceToolTip;
                this.AddProfile.ToolTipText    = context.ButtonAddProfileToolTip;
                this.RemoveProfile.ToolTipText = context.ButtonRemoveProfileToolTip;

                log.InfoEx("> LocalizeComponent END");
            }
            catch (Exception ex)
            {
                log.InfoEx("> LocalizeComponent Exception: {0}", ex.Message);

                MessageBox.Show(
                    "No Localization.xml found or there is an error during loading. Coordinates Converter window is not fully localized.",
                    "Module Visibility",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Error);
            }
        }
예제 #4
0
 private void LocalizeComponent()
 {
     try
     {
         _localizationContext = new LocalizationContext();
         this.Text            = _localizationContext.WindowCaptionVisibilites;
         this.labelHeaderSessionProfiles.Text = _localizationContext.labelHeaderSessionVisibilites;
         this.buttonAddProfilesTo3D.Text      = _localizationContext.buttonAddProfilesTo3D;
     }
     catch
     {
         MessageBox.Show("No Localization.xml found or there is an error during loading", "Error Localization form");
     }
 }
예제 #5
0
        private void LocalizeComponent()
        {
            try
            {
                //< WindowCaptionProfiles > Поверхні </ WindowCaptionProfiles >
                //< LabelProfileTreeHeader > Поверхні для візуалізації</ LabelProfileTreeHeader >
                //< ButtonAddSessionProfileTree > Додати </ ButtonAddSessionProfileTree >

                _context  = new LocalizationContext();
                this.Text = _context.WindowCaptionProfiles;
                this.LabelProfileTreeHeader.Text      = _context.LabelProfileTreeHeader;
                this.ButtonAddSessionProfileTree.Text = _context.ButtonAddSessionProfileTree;
            }
            catch
            {
                MessageBox.Show("No Localization.xml found or there is an error during loading", "Error Localization form");
            }
        }
예제 #6
0
 internal ProfilesTreeView(LocalizationContext context)
 {
     InitializeComponent();
     _context = context;
     LocalizeComponent();
 }
예제 #7
0
파일: DataAccess.cs 프로젝트: VsPun/DPP
 internal DataAccess(LocalizationContext context)
 {
     _context = context;
 }