Example #1
0
        public ScriptEditorControl()
        {
            InitializeComponent();

            openScripts = new List <ScriptDocument>();

            FileInfo globalConfigFile = new FileInfo(@"C:\Users\Andrew\Documents\Visual Studio 2005\Projects\ScintillaNET\Configuration\global.properties");

            properties = new SciTEProperties();
            properties.Load(globalConfigFile);
            config = new ScintillaConfig(properties);
        }
Example #2
0
        public void Initialise(IManager manager)
        {
            mManager = manager;

            FileInfo exeFile          = new FileInfo(Application.ExecutablePath);
            FileInfo globalConfigFile = new FileInfo(exeFile.Directory.FullName + @"\TextEditor\Properties\Tilde.properties");

            if (globalConfigFile.Exists)
            {
                mScintillaProperties = new SciTEProperties();
                mScintillaProperties.Load(globalConfigFile);
            }

            mOptions = new TextOptions();
            manager.OptionsManager.Options.Add(mOptions);

            m_components = new MainWindowComponents(this);
            manager.AddToMenuStrip(m_components.MenuStrip.Items);
        }