static public DevicesModel createDevicesModel() { IDevicesView dv = new DevicesView(); DevicesModel dm = new DevicesModel(); dm.setDevicesView(dv); dv.setModel(dm); return(dm); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); devicesModel = MainFabric.createDevicesModel(); devicesModel.start(); DevicesView devicesView = (DevicesView)devicesModel.getDevicesView(); devicesView.Show(); }
void IDevicesView.setModel(DevicesModel devicesModel) { this.devicesModel = devicesModel; }