private bool IsWCFAlive() { statusLabel.Text = "Connecting to server..."; mon = new MonitorWCFService(); Application.DoEvents(); bool isAlive = false; bool boolSpc = false; mon.IsAlive(out isAlive, out boolSpc); return(isAlive); }
//--------------------------------------------------------------------- //--------------------------------------------------------------------- //--------------------------------------------------------------------- public Worker(MonitorWCFService mon, ListView lv) { this.mon = mon; this.lv = lv; }