public HeartBeatViewPage()
        {
            InitializeComponent();

            #region For HeartAdapter Test
            IHeartModel     heartModel      = new HeartModel();
            IBeatModel      beatModel       = new HeartAdapter(heartModel);
            IDJController   btmController   = new DJController(djView, beatModel);
            IBeatController heartController = new HeartController(beatView, beatModel);
            #endregion
        }
Beispiel #2
0
        public ControlForm()
        {
            InitializeComponent();
            var heartModel = new HeartModel();

            model      = new HeartAdapter(heartModel);
            controller = new HeartController(this, heartModel);
            viewForm   = new ViewForm();
            viewForm.AddOwnedForm(this);
            FormClosed += delegate { Application.Exit(); };
            viewForm.Show();
            model.BeatOccured += OnBeatOccured;
            model.BpmChanged  += OnBpmChanged;
            //Anchor = AnchorStyles.Bottom;
        }
 public static void Run()
 {
     HeartModel  heartModel = new HeartModel();
     IController controller = new HeartController(heartModel);
 }