Esempio n. 1
0
 public RadioMenuItem(RadioCommand command, RadioMenuItem controller, Generator generator = null)
     : base(command, generator, typeof(IRadioMenuItem), false)
 {
     Checked = command.Checked;
     Click  += (sender, e) => command.Checked = Checked;
     command.CheckedChanged += (sender, e) => Checked = command.Checked;
     Handler.Create(controller);
     Initialize();
     Handler.CreateFromCommand(command);
 }
Esempio n. 2
0
		protected RadioMenuItem (Generator generator, Type type, RadioMenuItem controller, bool initialize = true)
			: base (generator, type, false)
		{
			handler = (IRadioMenuItem)base.Handler;
			handler.Create (controller);
			if (initialize)
				Initialize ();
		}
Esempio n. 3
0
 protected RadioMenuItem(Generator generator, Type type, RadioMenuItem controller, bool initialize = true)
     : base(generator, type, false)
 {
     Handler.Create(controller);
     if (initialize)
     {
         Initialize();
     }
 }
Esempio n. 4
0
 public RadioMenuItem(Generator g, RadioMenuItem controller)
     : base(g, typeof(IRadioMenuItem))
 {
     inner = (IRadioMenuItem)base.Handler;
     inner.Create(controller);
 }