private void Frm_DynamicMaskDetails_Load(object sender, EventArgs e)
        {
            this.loading = true;

            Global_GUI.ConfigureFOLV(this.FOLV_MaskHistory, typeof(ObjectPosition), null, null, "createDate", SortOrder.Descending);
            Global_GUI.ConfigureFOLV(this.FOLV_Masks, typeof(ObjectPosition), null, null, "createDate", SortOrder.Descending);

            Global_GUI.RestoreWindowState(this);

            this.comboBox_filter_camera.Items.Clear();
            this.comboBox_filter_camera.Items.Add("All Cameras");

            int i      = 1;
            int curidx = 1;

            foreach (Camera curcam in AppSettings.Settings.CameraList)
            {
                this.comboBox_filter_camera.Items.Add($"   {curcam.Name}");
                if (this.cam.Name.Trim().ToLower() == curcam.Name.Trim().ToLower())
                {
                    curidx = i;
                    Log($"Cam '{curcam.Name}' is at index '{curidx}'");
                }
                i++;
            }

            this.comboBox_filter_camera.SelectedIndex = curidx;


            this.Refresh();

            this.loading = false;
        }
Пример #2
0
        private void Frm_DynamicMaskDetails_Load(object sender, EventArgs e)
        {
            Global_GUI.ConfigureFOLV(ref FOLV_MaskHistory, typeof(ObjectPosition), null, null);
            Global_GUI.ConfigureFOLV(ref FOLV_Masks, typeof(ObjectPosition), null, null);

            Refresh();
        }
Пример #3
0
        private void Frm_Faces_Load(object sender, EventArgs e)
        {
            using var Trace = new Trace();  //This c# 8.0 using feature will auto dispose when the function is done.


            Global_GUI.ConfigureFOLV(FOLV_Faces, typeof(ClsFace));
            Global_GUI.ConfigureFOLV(FOLV_FaceFiles, typeof(ClsFaceFile));

            Global_GUI.UpdateFOLV(FOLV_Faces, AITOOL.FaceMan.Faces, FullRefresh: true);

            Global_GUI.RestoreWindowState(this);
        }
Пример #4
0
        private void Frm_Actions_Load(object sender, EventArgs e)
        {
            try
            {
                Global_GUI.ConfigureFOLV(ref FOLV_Actions, typeof(CameraTriggerAction), null, null);
                Global_GUI.UpdateFOLV(ref FOLV_Actions, actions, true);

                string[] triggertypes = Enum.GetNames(typeof(TriggerType));
                cbType.Items.AddRange(triggertypes);
            }
            catch (Exception ex)
            {
                Global.Log("Error: " + ex.Message);
            }
        }
Пример #5
0
        private void Frm_Errors_Load(object sender, EventArgs e)
        {
            Global_GUI.RestoreWindowState(this);

            this.Show();

            try
            {
                Global_GUI.ConfigureFOLV(this.folv_errors, typeof(ClsLogItm), null, null, "Time", SortOrder.Descending);

                Global_GUI.UpdateFOLV(this.folv_errors, this.errors);
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #6
0
        private void Frm_ObjectDetail_Load(object sender, EventArgs e)
        {
            Global_GUI.RestoreWindowState(this);

            this.Show();

            try
            {
                Global_GUI.ConfigureFOLV(this.folv_ObjectDetail, typeof(ClsPrediction), null, null);

                Global_GUI.UpdateFOLV(this.folv_ObjectDetail, this.PredictionObjectDetail);
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #7
0
        private void Frm_ObjectDetail_Load(object sender, EventArgs e)
        {
            Global_GUI.RestoreWindowState(this);


            this.Show();

            try
            {
                Global_GUI.ConfigureFOLV(this.folv_ObjectDetail, typeof(ClsPrediction), null, null);

                Global_GUI.UpdateFOLV(this.folv_ObjectDetail, this.PredictionObjectDetails);

                if (!String.IsNullOrEmpty(this.ImageFileName) && this.ImageFileName.Contains("\\") && File.Exists(this.ImageFileName))
                {
                    OriginalBMP            = new Bitmap(this.ImageFileName);
                    this.pictureBox1.Image = OriginalBMP; //load actual image as background, so that an overlay can be added as the image
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Пример #8
0
 private void Frm_AddAIServers_Load(object sender, EventArgs e)
 {
     Global_GUI.RestoreWindowState(this);
     Global_GUI.ConfigureFOLV(FOLV_AIServers, typeof(ClsURLItem), null, this.imageList1);
     Global_GUI.UpdateFOLV(FOLV_AIServers, AppSettings.Settings.AIURLList);
 }
Пример #9
0
 private void Frm_Variables_Load(object sender, EventArgs e)
 {
     Global_GUI.ConfigureFOLV(FOLV_Vars, typeof(ClsProp));
     Global_GUI.UpdateFOLV(FOLV_Vars, props, ResizeColsStyle: ColumnHeaderAutoResizeStyle.ColumnContent);
     Global_GUI.RestoreWindowState(this);
 }