public override void NewProject() { if (CanClose()) { base.NewProject(); isDirty = false; visualizer.Clear(); if (StateChanged != null) { StateChanged(this, EventArgs.Empty); } } }