Ejemplo n.º 1
0
        public CodeEditorControl()
        {
            InitializeComponent();
            mAutoCompleteManager = new AutoCompleteManager();
            mAutoCompleteManager.Initialize(syntaxBoxControl1);

            syntaxDocument1.SyntaxFile = @"Content\SyntaxHighlighting\C#.syn";
            mTimer = new Timer {Interval = 2000};

            // This means the timer will check every 2 seconds to see if the user has typed anything that should be saved.
            mTimer.Tick += OnTimerTick;
            mTimer.Start();

            TopText = "";
            BottomText = "";
        }
Ejemplo n.º 2
0
        public CodeEditorControl()
        {
            InitializeComponent();
            mAutoCompleteManager = new AutoCompleteManager();
            mAutoCompleteManager.Initialize(syntaxBoxControl1);

            syntaxDocument1.SyntaxFile = @"Content\SyntaxHighlighting\C#.syn";
            mTimer = new Timer {
                Interval = 2000
            };

            // This means the timer will check every 2 seconds to see if the user has typed anything that should be saved.
            mTimer.Tick += OnTimerTick;
            mTimer.Start();

            TopText    = "";
            BottomText = "";
        }