public CheckMenuItem(CheckCommand command, Generator generator = null) : base(command, generator, typeof(CheckMenuItem.IHandler)) { Checked = command.Checked; command.CheckedChanged += (sender, e) => Checked = command.Checked; Click += (sender, e) => command.Checked = Checked; }
/// <summary> /// Initializes a new instance of the <see cref="Eto.Forms.RadioToolItem"/> class with the specified <paramref name="command"/>. /// </summary> /// <param name="command">Command for the tool item.</param> public RadioToolItem(CheckCommand command) : base(command) { Checked = command.Checked; command.CheckedChanged += (sender, e) => Checked = command.Checked; CheckedChanged += (sender, e) => command.Checked = Checked; Handler.CreateFromCommand(command); }
public CheckToolItem(CheckCommand command, Generator generator = null) : base(command, generator, typeof(ICheckToolItem)) { Checked = command.Checked; command.CheckedChanged += (sender, e) => Checked = command.Checked; Click += (sender, e) => command.Checked = Checked; Handler.CreateFromCommand(command); }
/// <summary> /// Initializes a new instance of the <see cref="Eto.Forms.CheckMenuItem"/> class with the specified command. /// </summary> /// <param name="command">Command to initialize the menu with.</param> public CheckMenuItem(CheckCommand command) : base(command) { Checked = command.Checked; command.CheckedChanged += (sender, e) => Checked = command.Checked; CheckedChanged += (sender, e) => command.Checked = Checked; Handler.CreateFromCommand(command); }
/// <summary> /// Initializes a new instance of the <see cref="Eto.Forms.CheckMenuItem"/> class with the specified command. /// </summary> /// <param name="command">Command to initialize the menu with.</param> public CheckMenuItem(CheckCommand command) : base(command) { Checked = command.Checked; command.CheckedChanged += (sender, e) => Checked = command.Checked; Click += (sender, e) => command.Checked = Checked; Handler.CreateFromCommand(command); }
/// <summary> /// Initializes a new instance of the <see cref="Eto.Forms.RadioToolItem"/> class with the specified <paramref name="command"/>. /// </summary> /// <param name="command">Command for the tool item.</param> public RadioToolItem(CheckCommand command) : base(command) { Checked = command.Checked; command.CheckedChanged += (sender, e) => Checked = command.Checked; Click += (sender, e) => command.Checked = Checked; Handler.CreateFromCommand(command); }
/// <summary> /// Initializes a new instance of the <see cref="Eto.Forms.RadioToolItem"/> class with the specified <paramref name="command"/>. /// </summary> /// <param name="command">Command for the tool item.</param> public RadioToolItem(CheckCommand command) : base(command) { Handler.CreateFromCommand(command); }
/// <summary> /// Initializes a new instance of the <see cref="Eto.Forms.CheckMenuItem"/> class with the specified command. /// </summary> /// <param name="command">Command to initialize the menu with.</param> public CheckMenuItem(CheckCommand command) : base(command) { Handler.CreateFromCommand(command); }