Inheritance: System.Windows.Forms.Form
 private void edge_dlg()
 {
     if (dlgCanny == null)
     {
         dlgCanny           = new DlgParams();
         dlgCanny.BackColor = Color.FromArgb(244, 239, 240);
         dlgCanny.Icon      = this.Icon;
         dlgCanny.Text      = "Canny";
         dlgCanny.AddTrackbar("Thres 1", 0, 0, 255, 1, 0);
         dlgCanny.AddTrackbar("Thres 2", 1, 0, 255, 1, 0);
         dlgCanny.Show();
         dlgCanny.Location = new Point(675, 500);
     }
 }
        private void skin_dlg()
        {
            if (skinDet == null)
            {
                skinDet = new SkinDetect(this);
            }

            if (dlgParam == null)
            {
                dlgParam           = new DlgParams();
                dlgParam.BackColor = Color.FromArgb(244, 239, 240);
                dlgParam.Icon      = this.Icon;
                dlgParam.Text      = "Noise Removal";
                dlgParam.AddTrackbar("Dilate", 0, 0, 10, 1, 1);
                dlgParam.AddTrackbar("Erode", 1, 0, 10, 1, 1);
                dlgParam.AddTrackbar("Smooth", 2, 0, 10, 1, 1);
            }
        }
        private void skin_dlg()
        {
            if (skinDet == null)
                skinDet = new SkinDetect(this);

            if (dlgParam == null)
            {
                dlgParam = new DlgParams();
                dlgParam.BackColor = Color.FromArgb(244, 239, 240);
                dlgParam.Icon = this.Icon;
                dlgParam.Text = "Noise Removal";
                dlgParam.AddTrackbar("Dilate", 0, 0, 10, 1, 1);
                dlgParam.AddTrackbar("Erode", 1, 0, 10, 1, 1);
                dlgParam.AddTrackbar("Smooth", 2, 0, 10, 1, 1);
            }
        }
 private void edge_dlg()
 {
     if (dlgCanny == null)
     {
         dlgCanny = new DlgParams();
         dlgCanny.BackColor = Color.FromArgb(244, 239, 240);
         dlgCanny.Icon = this.Icon;
         dlgCanny.Text = "Canny";
         dlgCanny.AddTrackbar("Thres 1", 0, 0, 255, 1, 0);
         dlgCanny.AddTrackbar("Thres 2", 1, 0, 255, 1, 0);
         dlgCanny.Show();
         dlgCanny.Location = new Point(675, 500);
     }
 }