/// <summary> /// パラメータの取得 /// </summary> /// <param name="name">パラメータ名称</param> /// <returns> /// 取得した値を返します。 /// </returns> public object GetParam(string name) { switch (name) { case "FrameSize": { TxSizeI value = new TxSizeI(); value.Width = this.SampleGrabberCB.FrameSize.Width; value.Height = this.SampleGrabberCB.FrameSize.Height; return(value); } default: throw new NotSupportedException("Specified name is not supported."); } }
/// <summary> /// パラメータの取得 /// </summary> /// <param name="name">パラメータ名称</param> /// <returns> /// 取得した値を返します。 /// </returns> public object GetParam(string name) { switch (name) { case "FrameSize": { TxSizeI value = new TxSizeI(); value.Width = this.SampleGrabberCB.FrameSize.Width; value.Height = this.SampleGrabberCB.FrameSize.Height; return value; } default: throw new NotSupportedException("Specified name is not supported."); } }