Esempio n. 1
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">collection owner</param>
 internal TrayMenuItems(TrayMenu owner)
 {
     if (null == owner)
     {
         throw new ArgumentNullException();
     }
     _owner = owner;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuItem(TrayMenu owner, string text)
 {
     if (null == owner)
     {
         throw new ArgumentNullException("owner");
     }
     _owner = owner;
     Text   = text;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 /// <param name="control">custom control</param>
 internal TrayMenuCustomItem(TrayMenu owner, string text, bool visible, object control) : base(owner, text, visible)
 {
     if (null == control)
     {
         throw new ArgumentNullException("control");
     }
     _control = control;
     ItemType = TrayMenuItemType.Custom;
 }
Esempio n. 4
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">owner instance</param>
 internal TrayUtils(CommonUtils owner)
 {
     if (null == owner)
     {
         throw new ArgumentNullException("owner");
     }
     _owner = owner;
     Menu   = new TrayMenu(owner.Owner);
 }
Esempio n. 5
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuItem(TrayMenu owner, string text, bool visible)
 {
     if (null == owner)
     {
         throw new ArgumentNullException("owner");
     }
     _owner  = owner;
     Text    = text;
     Visible = visible;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuProgressItem(TrayMenu owner, string text, bool visible) : base(owner, text, visible)
 {
     ItemType = TrayMenuItemType.Progress;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuSeparatorItem(TrayMenu owner, string text, bool visible) : base(owner, text, visible)
 {
     ItemType = TrayMenuItemType.Separator;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuProgressItem(TrayMenu owner, string text) : base(owner, text)
 {
     ItemType = TrayMenuItemType.Progress;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuCheckboxItem(TrayMenu owner, string text, bool visible) : base(owner, text, visible)
 {
     ItemType = TrayMenuItemType.CheckBox;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuSeparatorItem(TrayMenu owner, string text) : base(owner, text)
 {
     ItemType = TrayMenuItemType.Separator;
 }
Esempio n. 11
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuButtonItem(TrayMenu owner, string text, bool visible) : base(owner, text, visible)
 {
     ItemType = TrayMenuItemType.Button;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuCheckboxItem(TrayMenu owner, string text) : base(owner, text)
 {
     ItemType = TrayMenuItemType.CheckBox;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuLinkLabelItem(TrayMenu owner, string text) : base(owner, text)
 {
     ItemType = TrayMenuItemType.LinkLabel;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuTextboxItem(TrayMenu owner, string text, bool visible) : base(owner, text, visible)
 {
     ItemType = TrayMenuItemType.TextBox;
 }
Esempio n. 15
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">collection owner</param>
 internal TrayMenuStubItems(TrayMenu owner) : base(owner)
 {
 }
Esempio n. 16
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">collection owner</param>
 /// <param name="parent">parent item instance</param>
 internal TrayMenuStubItems(TrayMenu owner, TrayMenuItem parent) : base(owner, parent)
 {
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuMonitorItem(TrayMenu owner, string text) : base(owner, text)
 {
     ItemType = TrayMenuItemType.Monitor;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuAutoCloseItem(TrayMenu owner, string text) : base(owner, text)
 {
     ItemType = TrayMenuItemType.AutoClose;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuAutoCloseItem(TrayMenu owner, string text, bool visible) : base(owner, text, visible)
 {
     ItemType = TrayMenuItemType.AutoClose;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuDropDownListItem(TrayMenu owner, string text, bool visible) : base(owner, text, visible)
 {
     ItemType   = TrayMenuItemType.DropDownList;
     DataSource = new ObjectCollection(this);
 }
Esempio n. 21
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuButtonItem(TrayMenu owner, string text) : base(owner, text)
 {
     ItemType = TrayMenuItemType.Button;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 /// <param name="visible">item visibility</param>
 internal TrayMenuLinkLabelItem(TrayMenu owner, string text, bool visible) : base(owner, text, visible)
 {
     ItemType = TrayMenuItemType.LinkLabel;
 }
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="owner">item owner</param>
 /// <param name="text">shown caption</param>
 internal TrayMenuTextboxItem(TrayMenu owner, string text) : base(owner, text)
 {
     ItemType = TrayMenuItemType.TextBox;
 }