void timer_Tick2(object sender, EventArgs e) { if (MyType == EnumDefines.RBEnum.RB1) { MySoundModel.PlotFFT(); } if (MyType == EnumDefines.RBEnum.RB2) { MySoundModel.PlotSpectrogram(); } }
/// <summary> /// トグルスイッチの変化で起動する処理 /// </summary> /// <param name="val"></param> public bool Ts_Process(bool val) { bool ret = true; if (val) { MySoundModel.SoundCaptureOn(); mytimer1.Start(); mytimer2.Start(); ret = MySoundModel.captureFlag; } else { MySoundModel.SoundCaptureOff(); mytimer1.Stop(); mytimer2.Stop(); ret = !MySoundModel.captureFlag; } return(ret); }
void timer_Tick1(object sender, EventArgs e) { MySoundModel.PlotRT(); }