private void numBrightness_ValueChanged(object sender, EventArgs e) { if (UVDLPApp.Instance().m_deviceinterface.Driver.DriverType == Drivers.eDriverType.eRF_3DLPRINTER) { RobotFactorySRL_3DLPrinter driver = (RobotFactorySRL_3DLPrinter)UVDLPApp.Instance().m_deviceinterface.Driver; driver.SetBrightness((int)numContrast.Value); } }
private void cmdDown_Click(object sender, EventArgs e) { try { float mmdist = float.Parse(txtsteps.Text); if (UVDLPApp.Instance().m_deviceinterface.Driver.DriverType == Drivers.eDriverType.eRF_3DLPRINTER) { RobotFactorySRL_3DLPrinter driver = (RobotFactorySRL_3DLPrinter)UVDLPApp.Instance().m_deviceinterface.Driver; driver.Move(RobotFactorySRL_3DLPrinter.eDirection.eDOWN, mmdist); } } catch (Exception ex) { DebugLogger.Instance().LogRecord(ex.Message); } }