Beispiel #1
0
        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);
                        //v.UpdateChannelFunc(m.chnl, m.row);
                        m.changedFlag = false;
                    }
                }
                Thread.Sleep(100);
            }
        }
Beispiel #2
0
 public myController(VariablesView variablesView)
 {
     this.channelsGrid  = variablesView.channelsGrid;
     this.variablesView = variablesView;
 }