Пример #1
0
 public FunctionTask(DsaSoftPanelForm parentForm)
 {
     _globalInfo       = SoftPanelGlobalInfo.GetInstance();
     this._dataBuf     = new List <double>(Constants.DefaultDisplayBufSize);
     this._parentForm  = parentForm;
     this.FunctionType = FunctionType.None;
     this._measure     = new MeasureHandler();
 }
Пример #2
0
 public ChannelViewManager(DsaSoftPanelForm parentForm, params Label[] channelButtons)
 {
     this._parentForm           = parentForm;
     this._parentControl        = parentForm.txTabControl_channel;
     this._globalInfo           = SoftPanelGlobalInfo.GetInstance();
     this._globalInfo.ShowRange = ShowMaxAndMin;
     // to fix init error
     _parentControl.TabPages.Clear();
     _parentControl.SelectedIndex = 0;
     foreach (Label channelButton in channelButtons)
     {
         channelButton.Click += ChannelButtonOnClick;
         _channelButtons.Add(channelButton);
     }
 }
Пример #3
0
 public MeasureTask(DsaSoftPanelForm parentForm)
 {
     Measures = new Dictionary <MeasureType, string>(Enum.GetNames(typeof(MeasureType)).Length);
     _oscilloscopeGlobalInfo = SoftPanelGlobalInfo.GetInstance();
     this._parentForm        = parentForm;
 }
Пример #4
0
 public FunctionTask(DsaSoftPanelForm parentForm)
 {
     this._parentForm  = parentForm;
     this.FunctionType = FunctionType.None;
 }