示例#1
0
        internal void Run()
        {
            _explorer = new ProjectExplorerView(this);
            _workspace = new WorkspaceView("Main", this);
            _explorer.Show();
            _workspace.Show();

            FileName = LastFileNameFileHandle.String;
            if(FileName == null)
                OnOpen();
            if(FileName == null)
                return;

            var t = new System.Timers.Timer(TimeSpan.FromSeconds(2).TotalMilliseconds) {AutoReset = true};
            t.Elapsed += (s, e) => CheckForSave();
            t.Enabled = true;

            EnsureDragDropController();
            Application.Run(this);
        }