private void form_EngineControl_CrankshaftAngleChanged(object sender, CrankshaftAngleEventArgs e) { Form_EngineControl _form_EngineControl = (Form_EngineControl)sender; if (_form_EngineControl.Visible) { this.engineViewer.CrankshaftRotation_deg = e.NewAngle_deg; } }
private void form_EngineControl_VisibleChanged(object sender, EventArgs e) { Form_EngineControl _form_EngineControl = (Form_EngineControl)sender; this.toolStripMenuItem_Tools_EngineControl.Checked = _form_EngineControl.Visible; if (_form_EngineControl.Visible) { _form_EngineControl.Engine = this.engineEditor.EditedPart; } this.engineViewer.AnimatedEnabled = !_form_EngineControl.Visible; }
public Form_ExhaustNote(Form _owner, Form_EngineControl _engineControl) : base(_owner, _engineControl) { InitializeComponent(); this.simulatedExhaustNote = this.dxPlayer1.AddSoundPatch(new Wave( EngineDesigner.Properties.Resources.Kick)); this.realTimeExhaustNote = this.dxPlayer1.AddSoundPatch(new Wave( EngineDesigner.Properties.Resources.Kick)); this.simulatedExhaustNote.Volume = this.trackBar_Volume.Value; this.realTimeExhaustNote.Volume = this.trackBar_Volume.Value; }
public Form_EngineMonitorBase(Form _owner, Form_EngineControl _engineControl) : base(_owner) { if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { if (_engineControl == null) { throw new Exception(); } this.engineControl = _engineControl; this.engineControl.VisibleChanged += new EventHandler(engineControl_VisibleChanged); this.engineControl.CrankshaftAngleChanged += new EventHandler <CrankshaftAngleEventArgs>(engineControl_CrankshaftAngleChanged); this.engineControl.RPMChanged += new EventHandler <RPMEventArgs>(engineControl_RPMChanged); } }
private void engineControl_VisibleChanged(object sender, EventArgs e) { Form_EngineControl _engineControl = (Form_EngineControl)sender; this.OnEngineControlVisibleChanged(_engineControl.Visible); }
public Form_CrankshaftDiagram(Form _owner, Form_EngineControl _engineControl) : base(_owner, _engineControl) { InitializeComponent(); }
public Form_Statistics(Form _owner, Form_EngineControl _engineControl) : base(_owner, _engineControl) { InitializeComponent(); }