Beispiel #1
0
 public OptionsForm(OptionsContentEngine contentEngine)
 {
     this.contentEngine = contentEngine;
     InitializeComponent();
     foreach (IOptionsContent content in contentEngine.ContentList)
     {
         TreeNode tn = new TreeNode(content.ContentName);
         tvContentList.Nodes.Add(tn);
         nodes.Add(tn, content);
     }
     PascalABCCompiler.StringResources.SetTextForAllObjects(this, strprefix);
 }
Beispiel #2
0
        public OptionsForm(OptionsContentEngine contentEngine)
        {
            var sl = 50;

            this.contentEngine = contentEngine;
            InitializeComponent();
            foreach (IOptionsContent content in contentEngine.ContentList)
            {
                TreeNode tn = new TreeNode(content.ContentName);
                tvContentList.Nodes.Add(tn);
                nodes.Add(tn, content);
            }
            PascalABCCompiler.StringResources.SetTextForAllObjects(this, strprefix);
        }
Beispiel #3
0
        public OptionsForm(OptionsContentEngine contentEngine)
        {
            var sl = 50;

            this.contentEngine = contentEngine;
            System.Threading.Thread.Sleep(sl); // SSM 07.11.16 поставил на всякий случай задержки - иногда окно опций при открытии неактивное
            InitializeComponent();
            System.Threading.Thread.Sleep(sl);
            foreach (IOptionsContent content in contentEngine.ContentList)
            {
                TreeNode tn = new TreeNode(content.ContentName);
                tvContentList.Nodes.Add(tn);
                nodes.Add(tn, content);
            }
            System.Threading.Thread.Sleep(sl);
            PascalABCCompiler.StringResources.SetTextForAllObjects(this, strprefix);
            System.Threading.Thread.Sleep(sl);
        }
 private void AddOptionsContent()
 {
     optionsContentEngine = new OptionsContentEngine(this);
     optionsContentEngine.AddContent(new ViewOptionsContent(this));
     optionsContentEngine.AddContent(new EditorOptionsContent(this));
     optionsContentEngine.AddContent(new CompilerOptionsContent(this));
     optionsContentEngine.AddContent(new IntelliseseOptionsContent(this));
 }