public VisMain() { InitializeComponent(); dgHaderLance.RowCount = LanceStringsCount; dgPatternLance.RowCount = LanceStringsCount; dgHaderAdditions.RowCount = MaterialsCount; dgPatternAdditions.RowCount = MaterialsCount; m_cntJobReadyList = new List<int>(); for (int i = 0; i < WeigherNum; i++) m_cntJobReadyList.Add(0); PushGate = new Client(); var o = new TestEvent(); ListenGate = new Client(new Listener()); ListenGate.Subscribe(); initTimer.Interval = 2000; initTimer.Start(); LanceHaderFill(); comJobW3Old = new comJobW3Event(); comJobW4Old = new comJobW4Event(); comJobW5Old = new comJobW5Event(); comJobW6Old = new comJobW6Event(); comJobW7Old = new comJobW7Event(); //gbW3.BackColor = Color.FromArgb(0,0,50); //gbW4.BackColor = Color.FromArgb(255,100,0); }
public void Process(TestEvent _event) { try { this._Module._Heat.TestHistory.Add(_event); } catch { } }
static void Main(string[] args) { var o = new TestEvent(); m_listenGate = new ConnectionProvider.Client(new Listener()); m_listenGate.Subscribe(); var conf = ConfigurationManager.OpenExeConfiguration(""); var settings = conf.AppSettings.Settings; m_startsWith = Convert.ToString(settings["?"].Value); Console.WriteLine("FlexEventSaver started"); Console.ReadLine(); }
public CTMainForm() { InitializeComponent(); PushGate = new Client(); var o = new TestEvent(); ListenGate = new Client(new Listener()); ListenGate.Subscribe(); m_pushEvent = 0; m_receiveEvent = 0; m_loss = 0; isStarted = false; }
public void ListenerReceive(TestEvent te) { if (te.Dimm.Length == m_dataLenght) m_receiveEvent++; tbReceive.Text = m_receiveEvent.ToString(); }
private void timer_Tick(object sender, EventArgs e) { if (!cbMonitoring.Checked) { if (m_pushEvent >= Convertion.StrToInt32(tbCount.Text) - 1) timer.Stop(); } m_loss = m_pushEvent - m_receiveEvent; tbLoss.Text = m_loss.ToString(); var te = new TestEvent(); te.Dimm = new double[Convertion.StrToInt32(tbDimLength.Text)]; m_dataLenght = te.Dimm.Length; PushGate.PushEvent(te); //PushGate.PushEvent(new TestEvent()); m_pushEvent++; tbSend.Text = m_pushEvent.ToString(); }