public static IDictionary <NSTextField, TimeTextFieldController> BuildControllers(AbstractPlatform platform, NSTextField work, NSTextField break_)
        {
            var breakController = new BreakTimeTextFieldController(platform, break_);
            var workController  = new WorkTimeTextFieldController(platform, work);

            breakController.Other = workController;
            workController.Other  = breakController;

            return(new Dictionary <NSTextField, TimeTextFieldController> {
                { work, workController }, { break_, breakController }
            });
        }
예제 #2
0
        public static IDictionary<NSTextField, TimeTextFieldController> BuildControllers(AbstractPlatform platform, NSTextField work, NSTextField break_)
        {
            var breakController = new BreakTimeTextFieldController (platform, break_);
              var workController = new WorkTimeTextFieldController (platform, work);

              breakController.Other = workController;
              workController.Other = breakController;

              return new Dictionary<NSTextField,TimeTextFieldController> { {work, workController}, {break_, breakController} };
        }