private static void updateThreadProc(object obj)
        {
            VariablesView v = (VariablesView)obj;

            while (true)
            {
                foreach (chnlListMember m in v.channels)
                {
                    if (m.changedFlag)
                    {
                        object[] args = { m.chnl, m.row };
                        v.channelsGrid.Invoke(new UpdateChannelDelegate(v.UpdateChannelFunc), args);
                        m.changedFlag = false;
                    }
                }
                Thread.Sleep(100);
            }
        }
 public myController(VariablesView variablesView)
 {
     this.channelsGrid  = variablesView.channelsGrid;
     this.variablesView = variablesView;
 }