Пример #1
0
 public CheckBox(
     fbEngine engine,
     fbInterface ui,
     int depth = -1
     ) : base(engine, ui, depth)
 {
     subscriber = new InputSubscriber(this);
     subscriber.Register();
 }
Пример #2
0
        public Button(
            string label,
            Action reaction,
            fbEngine engine,
            fbInterface ui
            ) : base(engine, ui)
        {
            this.label    = new SmartText(label, ui);
            this.reaction = reaction;

            subscriber = new InputSubscriber(this);
            subscriber.Register();
        }