示例#1
0
        internal void LoadEngineState(string file, bool isBinary)
        {
            CheckForSave();

            if (this.EngineState != null)
                this.EngineState.Clear();

            this.CurrentFile = file;
            this.WorkingDirectory = Path.GetDirectoryName(file);
            this.EngineState = Gondwana.Common.EngineState.GetEngineState(file, isBinary);
            this.IsBinary = isBinary;
            this.IsDirty = false;

            if (EngineStateFileLoaded != null)
                EngineStateFileLoaded(this, new EventArgs());
        }
示例#2
0
        internal void LoadEngineState()
        {
            CheckForSave();

            Cursor.Current = Cursors.WaitCursor;

            if (this.EngineState != null)
                this.EngineState.Clear();

            this.CurrentFile = NoFile;
            this.WorkingDirectory = Path.GetDirectoryName(Application.ExecutablePath);
            this.EngineState = Gondwana.Common.EngineState.GetEngineState();
            this.IsBinary = false;
            this.IsDirty = false;

            Cursor.Current = Cursors.Default;

            if (EngineStateFileLoaded != null)
                EngineStateFileLoaded(this, new EventArgs());
        }