public preferences(IHost h, PluginPreferences _pref, CncControl cc)
 {
     InitializeComponent();
     this.FormBorderStyle = FormBorderStyle.FixedDialog;
     host = h;
     pref = _pref;
     _cc  = cc;
     pref.loadDefaults();
 }
Example #2
0
 public void Connect(IHost _host)
 {
     host = _host;
     host.Connection.eventConnectionChange += MyeventConnectionChange;
     host.Connection.eventResponse         += Connection_eventResponse;
     ToggleConnection(host.Connection.connector.IsConnected());
     pref = new PluginPreferences(host);
     refreshPref();
 }