public ConnectionConfig m_connection; // main serial connection to printer public DeviceDriverConfig() { m_drivertype = eDriverType.eGENERIC; // default to a null driver m_connection = new ConnectionConfig(); m_connection.CreateDefault(); }
public frmConnection(ref ConnectionConfig config, bool addauto = false) { m_config = config; m_addauto = addauto; InitializeComponent(); SetData(); }
public void Configure(ConnectionConfig cc) { m_config = cc; m_serialport.BaudRate = cc.speed; m_serialport.DataBits = cc.databits; m_serialport.Parity = cc.parity; m_serialport.Handshake = cc.handshake; m_serialport.PortName = cc.comname; }
private double m_Ypixpermm; // the calculated pixels per mm #endregion Fields #region Constructors public MonitorConfig() { m_XDLPRes = 1024; m_YDLPRes = 768; m_Xpixpermm = 1.0; m_Ypixpermm = 1.0; m_displayconnectionenabled = false; // -SHS m_displayconnection = new ConnectionConfig(); m_displayconnection.CreateDefault(); m_monitorid = ""; }
private double m_Ypixpermm; // the calculated pixels per mm #endregion Fields #region Constructors public MonitorConfig() { m_XDLPRes = 1024; m_YDLPRes = 768; m_Xpixpermm = 1.0; m_Ypixpermm = 1.0; m_displayconnectionenabled = false; // -SHS m_displayconnection = new ConnectionConfig(); m_monitorrect = new MRect(); m_displayconnection.CreateDefault(); m_monitorid = ""; m_mask = null; m_usemask = false; m_brightmask_filename = ""; }
/* public void RemoveDriver(DeviceDriver d) { m_lstprojectors.Remove(d); d.DataReceived -= new DeviceDriver.DataReceivedEvent(DriverDataReceivedEvent); d.DeviceStatus -= new DeviceDriver.DeviceStatusEvent(DriverDeviceStatusEvent); } * */ /* public DeviceDriver GetDriver(int i) { return m_lstprojectors[i]; } * */ /* // get and set the printdriver public DeviceDriver[] DriverProjector { get { return m_lstprojectors[]; } set { if (m_lstprojectors != null) { DeviceDriver olddriver = m_lstprojectors; if(olddriver.Connected == true) olddriver.Disconnect(); // disconnect the old driver //remove the old device driver delegates olddriver.DataReceived -= new DeviceDriver.DataReceivedEvent(DriverDataReceivedEvent); olddriver.DeviceStatus -= new DeviceDriver.DeviceStatusEvent(DriverDeviceStatusEvent); } //set the new driver m_lstprojectors = value; //and bind the delegates to listen to events m_lstprojectors.DataReceived += new DeviceDriver.DataReceivedEvent(DriverDataReceivedEvent); m_lstprojectors.DeviceStatus += new DeviceDriver.DeviceStatusEvent(DriverDeviceStatusEvent); } } */ public void Configure(ConnectionConfig cc) { Driver.Configure(cc); }
public frmConnection(ref ConnectionConfig config) { m_config = config; InitializeComponent(); SetData(); }
public void ConfigureProjector(ConnectionConfig cc) { DriverProjector.Configure(cc); }