public static double CreateAndShowDialog(GrblCore Core, double oldval)
        {
            double rv = oldval;

            using (ResolutionHelperForm f = new ResolutionHelperForm())
            {
                f.UDDesired.Value  = (decimal)oldval;
                f.UDHardware.Value = Core.Configuration.ResolutionX;
                f.Compute(null, null);

                if (f.ShowDialog() == DialogResult.OK)
                {
                    rv = f.mRetVal;
                }
            }

            return(rv);
        }
Example #2
0
 private void BtnFillingQualityInfo_Click(object sender, EventArgs e)
 {
     UDFillingQuality.Value = (decimal)ResolutionHelperForm.CreateAndShowDialog(mCore, (double)UDFillingQuality.Value);
     //System.Diagnostics.Process.Start(@"http://printek.it/laserfoamhelp/usage/raster-image-import/setting-reliable-resolution/");
 }