public MainForm() { InitializeComponent(); proxyExC = new ExClient.ExConsole.ExServiceClient(new InstanceContext(this)); proxyExS = new ExClient.ExService.ExServiceClient(new InstanceContext(this)); exdataGrid.CellValueChanged += new DataGridViewCellEventHandler(exdataGrid_CellValueChanged); }
public cSLMainForm(NeuSysConsole console) { InitializeComponent(); try { NeuSysConsole = console; proxyExS = new ExService.ExServiceClient(new InstanceContext(this)); proxyExC = new ExConsole.ExServiceClient(new InstanceContext(this)); exdataGrid.CellValueChanged += new DataGridViewCellEventHandler(exdataGrid_CellValueChanged); } catch (Exception e) { MessageBox.Show(e.Message); } }
private string TryGetExConsole() { if (!isproxyExC_OK) { try { if (proxyExC.State == CommunicationState.Faulted) { proxyExC.Abort(); proxyExC = new ExClient.ExConsole.ExServiceClient(new InstanceContext(this)); } proxyExC.Subscribe(true); exlist.Items.AddRange(proxyExC.GetEx()); isproxyExC_OK = true; return(null); } catch (Exception e) { return(e.Message); } } return(null); }
private string TryGetExConsole() { if (!isproxyExC_OK) { try { if (proxyExC.State == CommunicationState.Faulted) { proxyExC.Abort(); proxyExC = new ExConsole.ExServiceClient(new InstanceContext(this)); } proxyExC.Subscribe(true); experimentlist.Items.AddRange(proxyExC.GetEx()); isproxyExC_OK = true; return null; } catch (Exception e) { return e.Message; } } return null; }