Ejemplo n.º 1
0
        private void iPartEditor1_EditedPartChanged(object sender, EditedPartChangedEventArgs e)
        {
            Engine _engine = (Engine)e.EditedPart;


            this.engineViewer.IPart = _engine;


            if (this.form_EngineControl.Visible)
            {
                this.form_EngineControl.Engine = _engine;
            }

            if (this.form_CycleDiagram.Visible)
            {
                this.form_CycleDiagram.Engine = _engine;
            }

            if (this.form_CrankshaftDiagram.Visible)
            {
                this.form_CrankshaftDiagram.Engine = _engine;
            }

            if (this.form_ExhaustNote.Visible)
            {
                this.form_ExhaustNote.Engine = _engine;
            }

            if (this.form_Analyzer.Visible)
            {
                this.form_Analyzer.Engine = _engine;
            }
        }
Ejemplo n.º 2
0
 private void iPartEditor1_EditedPartChanged(object sender, EditedPartChangedEventArgs e)
 {
     this.iPartViewer1.IPart = e.EditedPart;
     base.changesSaved       = false;
 }