Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
            }
        }
Exemple #4
0
 private string TryGetExService()
 {
     if (!isproxyExS_OK)
     {
         try
         {
             if (proxyExS.State == CommunicationState.Faulted)
             {
                 proxyExS.Abort();
                 proxyExS = new ExClient.ExService.ExServiceClient(new InstanceContext(this));
             }
             proxyExS.Subscribe(true);
             isproxyExS_OK = true;
             return(null);
         }
         catch (Exception e)
         {
             return(e.Message);
         }
     }
     return(null);
 }
Exemple #5
0
 private string TryGetExService()
 {
     if (!isproxyExS_OK)
     {
         try
         {
             if (proxyExS.State == CommunicationState.Faulted)
             {
                 proxyExS.Abort();
                 proxyExS = new ExService.ExServiceClient(new InstanceContext(this));
             }
             proxyExS.Subscribe(true);
             isproxyExS_OK = true;
             return null;
         }
         catch (Exception e)
         {
             return e.Message;
         }
     }
     return null;
 }