Ejemplo n.º 1
0
        static public DevicesModel createDevicesModel()
        {
            IDevicesView dv = new DevicesView();
            DevicesModel dm = new DevicesModel();

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

            return(dm);
        }
Ejemplo n.º 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;
 }