Example #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public AlertViewerComponentControl(AlertViewerComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;

            ToolStripBuilder.BuildToolStrip(ToolStripBuilder.ToolStripKind.Toolbar, _toolbar.Items, _component.AlertActions.ChildNodes);

            _alertTableView.Table     = _component.Alerts;
            _alertTableView.MenuModel = _component.AlertActions;

            // need to work with these manually, because data-binding doesn't work well with toolstrip comboboxes
            _filter.Items.AddRange(_component.FilterChoices.Cast <object>().Select(i => new FilterItem(i, _component.FormatFilter)).ToArray());
            _filter.SelectedIndex         = 0;
            _filter.SelectedIndexChanged += _activityFilter_SelectedIndexChanged;
        }
        /// <summary>
        /// Constructor
        /// </summary>
		public AlertViewerComponentControl(AlertViewerComponent component)
            :base(component)
        {
            InitializeComponent();

            _component = component;

			ToolStripBuilder.BuildToolStrip(ToolStripBuilder.ToolStripKind.Toolbar, _toolbar.Items, _component.AlertActions.ChildNodes);
			
			_alertTableView.Table = _component.Alerts;
        	_alertTableView.MenuModel = _component.AlertActions;

			// need to work with these manually, because data-binding doesn't work well with toolstrip comboboxes
			_filter.Items.AddRange(_component.FilterChoices.Cast<object>().Select(i => new FilterItem(i, _component.FormatFilter)).ToArray());
			_filter.SelectedIndex = 0;
			_filter.SelectedIndexChanged += _activityFilter_SelectedIndexChanged;
		}
Example #3
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (AlertViewerComponent)component;
 }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (AlertViewerComponent)component;
 }