public MeasurementControl(MeasurementParameters mp,Main mainForm)
 {
     showCurrent = true;
     Parameters = mp;
     ADPrevodnik = new NIDriver(Parameters.NumberOfSteps);
     this.mainForm = mainForm;
     showCurrent = true;
 }
 internal void setMainForm(Main main)
 {
     mainForm = main;
 }