コード例 #1
0
        public AimMarkupColorComponentControl(AimMarkupColorComponent component) : base(component)
        {
            _component = component;
            InitializeComponent();

            var bindingSource = new BindingSource();

            bindingSource.DataSource = _component;

            _checkBoxRandomMarkupColor.DataBindings.Add("Checked", _component, "UseRandomDefaultMarkupColor", true, DataSourceUpdateMode.OnPropertyChanged);
            OnRandomMarkupColorCheckedChanged(null, new EventArgs());
            PopulateLoginNameMarkupColorListView();
            Load += OnAimMarkupColorComponentControlParentChanged;
        }
        public AimMarkupColorComponentControl(AimMarkupColorComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            BindingSource bindingSource = new BindingSource();
            bindingSource.DataSource = _component;

            _checkBoxRandomMarkupColor.DataBindings.Add("Checked", _component, "UseRandomDefaultMarkupColor", true, DataSourceUpdateMode.OnPropertyChanged);
            OnRandomMarkupColorCheckedChanged(null, new EventArgs());
            PopulateLoginNameMarkupColorListView();
            this.Load += OnAimMarkupColorComponentControlParentChanged;
        }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (AimMarkupColorComponent)component;
 }
コード例 #4
0
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (AimMarkupColorComponent)component;
 }