Beispiel #1
0
 public CommandBarCustomizeDialog(CommandBarStripInfoHolder stripInfoHolder)
 {
     this.InitializeComponent();
     this.chooseToolstripLabel.LabelElement.LabelFill.Visibility = ElementVisibility.Visible;
     this.SetLocalizedStrings();
     this.stripInfoHolder = stripInfoHolder;
     this.stripsListControl.CreatingVisualListItem     += new CreatingVisualListItemEventHandler(this.stripsListControl_CreatingVisualListItem);
     this.stripsListControl.ItemDataBinding            += new ListItemDataBindingEventHandler(this.ItemDataBinding);
     this.stripItemsListControl.CreatingVisualListItem += new CreatingVisualListItemEventHandler(this.toolstripItemsListControl_CreatingVisualListItem);
     this.stripItemsListControl.ItemDataBinding        += new ListItemDataBindingEventHandler(this.toolstripItemsListControl_ItemDataBinding);
     this.stripsListControl.DataSource     = (object)stripInfoHolder.StripInfoList;
     this.stripsDropDownList.DropDownStyle = RadDropDownStyle.DropDownList;
     this.stripsDropDownList.Items.Clear();
     foreach (CommandBarStripElement stripInfo in stripInfoHolder.StripInfoList)
     {
         this.stripsDropDownList.Items.Add(new RadListDataItem()
         {
             Text  = stripInfo.DisplayName,
             Value = (object)stripInfo
         });
     }
     if (this.stripsDropDownList.Items.Count > 0)
     {
         this.stripsDropDownList.SelectedIndex = 0;
     }
     this.toolstripsDownList_SelectedValueChanged((object)this, EventArgs.Empty);
     this.moveUpButton.Enabled = false;
     this.WireEvents();
     this.context = new RadThemeComponentBase.ThemeContext((Control)this);
 }
 public RadColorDialogForm()
 {
     this.colorSelector   = RadColorEditor.CreateColorSelectorInstance();
     this.EnableAnalytics = false;
     this.InitializeComponent();
     this.context = new RadThemeComponentBase.ThemeContext((Control)this);
     this.colorSelector.SelectedColor    = Color.Red;
     this.colorSelector.OkButtonClicked += (ColorChangedEventHandler)((sender, args) =>
     {
         this.DialogResult = DialogResult.OK;
         this.Close();
     });
     this.colorSelector.CancelButtonClicked += (ColorChangedEventHandler)((sender, args) =>
     {
         this.DialogResult = DialogResult.Cancel;
         this.Close();
     });
     (this.colorSelector as Telerik.WinControls.UI.RadColorSelector).ColorChanged += new ColorChangedEventHandler(this.RadColorDialogForm_ColorChanged);
     this.ThemeNameChanged += new ThemeNameChangedEventHandler(this.RadColorDialogForm_ThemeNameChanged);
 }
Beispiel #3
0
 public CommandBarCustomizeDialog()
 {
     this.InitializeComponent();
     this.context = new RadThemeComponentBase.ThemeContext((Control)this);
 }
Beispiel #4
0
 public GanttViewPrintSettingsDialog(RadPrintDocument document)
     : base(document)
 {
     this.context = new RadThemeComponentBase.ThemeContext((Control)this);
 }
Beispiel #5
0
 public GanttViewPrintSettingsDialog()
 {
     this.context = new RadThemeComponentBase.ThemeContext((Control)this);
 }