コード例 #1
0
ファイル: Form1.cs プロジェクト: wcyjames/stackbot
        private void button1_Click(object sender, EventArgs e)
        {
            ExpSetup exp;

            exp = new ExpSetup();
            exp.Start(ref doc);

            short pret;

            while (true)
            {
                exp.GetParam(EXP_CMD.EXP_RUNNING_EXPERIMENT, out pret);
                if (pret == 0)
                {
                    break;
                }
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: junruli/Camera-Wrapper
        private async void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            bool     acquirebut_check = checkBox1.Checked;
            IDocFile WinVFile         = newExp.GetDocument();

Start_Camera:
            if (checkBox1.Checked == true)
            {
                DBHelper = new DatabaseHelper.DatabaseHelper(serverSettings.MemcachedServerIP, serverSettings.DatabaseServerIP, serverSettings.Username, serverSettings.Password, serverSettings.DBName);
                experiment_check();
                if (exp_check == 0)
                {
                    newExp.Start(WinVFile);
                }
                WinVFile = newExp.GetDocument();
Check_Camera:
                experiment_check();
                if (checkBox1.Checked == false)
                {
                    WinVFile.Close();
                    newExp.Stop();
                    goto End;
                }
                if (exp_check == 1)
                {
                    await PutTaskDelay();

                    goto Check_Camera;
                }
                else if (exp_check == 0)
                {
                    process_data(WinVFile);
                    goto Start_Camera;
                }
            }
            else
            {
                WinVFile.Close();
                newExp.Stop();
            }
End:
            int random;
        }