Exemple #1
0
        private void SaveSettings()
        {
            #region Save all tabs settings at once
            AllAppSettings.Set("FontFamily", (fontfamilyCombo.SelectedItem as string));
            AllAppSettings.Set("FontFace", (fontfaceCombo.SelectedItem as string));
            AllAppSettings.Set("PlotTheme", (themeCombo.SelectedItem as string));
            conService.RefreshConfig();//save all
            #endregion

            //refresh graphic image size, if modified.
            if (hasGraphicImageSizeEdited)
            {
                //image height width edited. Set flag in Syntax telling to refresh image dementions.
                //Launch Syntax Editor window with command pasted
                if (!isSyntaxGraphicRefreshed) //refresh once
                {
                    ////// Get Syntax Editor  //////
                    SyntaxEditorWindow sewindow = LifetimeService.Instance.Container.Resolve <SyntaxEditorWindow>();
                    //sewindow.Owner = mwindow;
                    sewindow.RefreshImgSizeForGraphicDevice();
                    isSyntaxGraphicRefreshed = true;
                }
                hasGraphicImageSizeEdited = false;
            }
        }
 private void RefreshSyntaxGraphicSize()
 {
     //image height width edited. Set flag in Syntax telling to refresh image dementions.
     //Launch Syntax Editor window with command pasted /// 29Jan2013
     if (!isSyntaxGraphicRefreshed) //refresh once
     {
         //MainWindow mwindow = LifetimeService.Instance.Container.Resolve<MainWindow>();
         ////// Get Syntax Editor  //////
         SyntaxEditorWindow sewindow = LifetimeService.Instance.Container.Resolve <SyntaxEditorWindow>();
         //sewindow.Owner = mwindow;
         sewindow.RefreshImgSizeForGraphicDevice();
         isSyntaxGraphicRefreshed = true;
     }
 }