Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;

            NetCard.NetCard n         = new NetCard.NetCard();
            string          ipAddress = n.getComputerIP();
            clsRegistry     reg       = new clsRegistry();

            if (ipAddress == "0.0.0.0")
            {
                string bip = reg.GetStringValue(Registry.LocalMachine, "SOFTWARE\\Goji solutions\\Field", "IpAddress");
                if (reg.strRegError == null)
                {
                }
                else
                {
                    GetManualIpAddress g = new GetManualIpAddress();
                    if (g.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        ipAddress = g.IpAddress;
                        reg.SetStringValue(Registry.LocalMachine, "SOFTWARE\\Goji solutions\\Field", "IpAddress", ipAddress);
                    }
                }
            }
            label5.Visible = true;
            label5.Text    = ipAddress;
            label1.Text    = "Goji MPFM Watson WCF Field installation version " + Properties.Settings.Default.WatsonInstallerVersion;
            ThreadedExecuter <string> executer = new ThreadedExecuter <string>(ProcessThread_1, ThreadCompleted);

            executer.Start();
        }
Esempio n. 2
0
        private void RunAssertion(AssertionBase assertion, int fairnessIndex, int engineIndex)
        {
            AssertionVerifier verifier = new AssertionVerifier(assertion, fairnessIndex, engineIndex);
            ThreadedExecuter <DiagnosisResult> executer = new ThreadedExecuter <DiagnosisResult>(verifier.Run, gatherResults);

            executer.Start();
        }
Esempio n. 3
0
        public Form1()
        {
            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;

            label1.Text = "Goji WCF Streaming services setup " + Properties.Settings.Default.WatsonInstallerVersion;
            ThreadedExecuter <string> executer = new ThreadedExecuter <string>(ProcessThread_1, ThreadCompleted);

            executer.Start();
        }
Esempio n. 4
0
        public void runParallel()
        {
            ThreadedExecuter <String> executer1 = new ThreadedExecuter <String>(longThread, callBack);
            ThreadedExecuter <String> executer2 = new ThreadedExecuter <String>(longThread, callBack);
            ThreadedExecuter <String> executer3 = new ThreadedExecuter <String>(longThread, callBack);

            executer1.Start();
            executer2.Start();
            executer3.Start();
            while (executer1.isAlive() || executer2.isAlive() || executer3.isAlive())
            {
                System.Diagnostics.Debug.WriteLine("Waiting to finish...");
            }
        }