Example #1
0
		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;
		}
Example #2
0
 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;
 }
Example #3
0
		/// <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);
		}
Example #4
0
		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);
		}
Example #5
0
 /// <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);
 }
Example #6
0
 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);
 }
Example #7
0
		/// <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);
		}
Example #8
0
 /// <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);
 }
Example #9
0
 /// <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);
 }
Example #10
0
 /// <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);
 }