Пример #1
0
        static void Main(string[] args)
        {
            VolumeModel model = new VolumeModel();
            VolumeView  view  = new VolumeView(new VolumeController(model), model);

            view.OnVolumeUpButtonClick();
            view.OnVolumeUpButtonClick();
            view.OnVolumeDownButtonClick();
        }
Пример #2
0
 public VolumeController(VolumeModel model)
 {
     this.model = model;
 }