static public DevicesModel createDevicesModel()
        {
            IDevicesView dv = new DevicesView();
            DevicesModel dm = new DevicesModel();

            dm.setDevicesView(dv);
            dv.setModel(dm);

            return(dm);
        }
Exemple #2
0
        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;
 }