コード例 #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 = "";
        }
コード例 #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 = "";
        }