public void setParams(CNCMain parent, Bitmap image, Int16 iDPI, Single sResolution) { frmParent = parent; DPI = iDPI; resolution = sResolution; adjustedImage = image; txtResolution.Text = (1.00f / sResolution).ToString("#0.0"); getImageSize(); }
private void EEPROM_Load(object sender, EventArgs e) { strConfig = new List <string>(); System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US"); frmParent = (CNCMain)this.Owner; }
public clsPosition(CNCMain gui) { _gui = gui; _enable = false; _gui.Connected += Connected; }