Ejemplo n.º 1
0
        private void btn_useRange_Click(object sender, EventArgs e)
        {
            frmCropGuideRange frmCropGuideRange = (Program.SystemMode != 1) ? new frmCropGuideRange(frsm, count, barcodeid) : new frmCropGuideRange(frs, count, barcodeid);

            frmCropGuideRange.Location = new Point(base.Location.X, base.Location.Y);
            frmCropGuideRange.Show();
            Hide();
            if (Program.SystemMode == 1)
            {
                frs.Hide();
            }
            else
            {
                frsm.Hide();
            }
        }
Ejemplo n.º 2
0
 private void btn_useRange_Click(object sender, EventArgs e)
 {
     if (Program.SystemMode == 1)
     {
         if (Program.IsCropPestRange_NEW)
         {
             frmCropPestRange_NEW frmCropPestRange_NEW = new frmCropPestRange_NEW(frs, count, barcodeid, 1);
             frmCropPestRange_NEW.Location = new Point(frs.Location.X, frs.Location.Y);
             frmCropPestRange_NEW.Show();
             Hide();
         }
         else
         {
             frmCropGuideRange frmCropGuideRange = new frmCropGuideRange(frs, count, barcodeid);
             frmCropGuideRange.Location = new Point(frs.Location.X, frs.Location.Y);
             frmCropGuideRange.Show();
             Hide();
         }
     }
     else if (Program.IsCropPestRange_NEW)
     {
         frmCropPestRange_NEW frmCropPestRange_NEW2 = new frmCropPestRange_NEW(frsm, count, barcodeid, 1);
         frmCropPestRange_NEW2.Location = new Point(frsm.Location.X, frsm.Location.Y);
         frmCropPestRange_NEW2.Show();
         Hide();
     }
     else
     {
         frmCropGuideRange frmCropGuideRange2 = new frmCropGuideRange(frsm, count, barcodeid);
         frmCropGuideRange2.Location = new Point(frsm.Location.X, frsm.Location.Y);
         frmCropGuideRange2.Show();
         Hide();
     }
     if (Program.SystemMode == 1)
     {
         frs.Hide();
     }
     else
     {
         frsm.Hide();
     }
 }