Exemplo n.º 1
0
 static void Main()
 {
     FrmCapture captureForm = new FrmCapture();
     if (captureForm.ShowDialog() == DialogResult.OK)
     {
     }
 }
Exemplo n.º 2
0
        private void SaveCourseFiles(long courseTaskId, CourseTask ct)
        {
            FrmCapture frmCapture = new FrmCapture();

            frmCapture.CourseTaskId = courseTaskId;
            frmCapture.Students     = ct.Students;
            if (frmCapture.ShowDialog() == DialogResult.OK)
            {
                //result

                /*foreach (var item in frmCapture.Photos)
                 * {
                 *  AddLog(item.Key + "=" + item.Value);
                 * }*/

                StoreModel.FinishCourseTask(courseTaskId, frmCapture.Photos);
            }
        }
Exemplo n.º 3
0
        private void btnCourseEnd_Click(object sender, EventArgs e)
        {
            //根据刚才存的临时id,呼叫拍照,然后存储拍照数据,最后形成完整的课程结果
            FrmCapture frmCapture = new FrmCapture();

            frmCapture.CourseTaskId = temp_id;
            frmCapture.Students     = temp_course_task.Students;
            if (frmCapture.ShowDialog() == DialogResult.OK)
            {
                //result
                foreach (var item in frmCapture.Photos)
                {
                    AddLog(item.Key + "=" + item.Value);
                }

                StoreModel.FinishCourseTask(temp_id, frmCapture.Photos);
            }
        }