private void ReadImage(Resco.Controls.CommonControls.TabControl aControl, XmlReader reader) { try { if (reader.Name == "Image") { Bitmap bitmap = TabControlConversion.ImageFromString(reader["Data"]); this.m_Conversion.SetProperty(aControl, reader["Name"], bitmap); } } catch (Exception) { } }
public ToolBar(Resco.Controls.CommonControls.TabControl aParent) { if (aParent == null) { throw new UnauthorizedAccessException("Error: This control is a part of the TabControl. Please use ToolbarControl in your application."); } base.Height = 0x1a; this.Dock = DockStyle.Top; this.m_ToolbarControl = new ToolbarControl(); this.m_ToolbarControl.Height = 0x1a; this.m_ToolbarControl.Dock = DockStyle.Fill; this.m_ToolbarControl.SelectionChanged += new EventHandler(this.ToolbarControl_SelectionChanged); this.m_ToolbarControl.ItemEntered += new EventHandler(this.ToolbarControl_ItemEntered); base.Controls.Add(this.m_ToolbarControl); }
private void ToolbarControl_SelectionChanged(object sender, EventArgs e) { Resco.Controls.CommonControls.TabControl parent = base.Parent as Resco.Controls.CommonControls.TabControl; parent.SelectedIndex = this.m_ToolbarControl.SelectedIndex; }
public TabPagesCollection(Resco.Controls.CommonControls.TabControl parent, ToolbarItemCollection aToolbarItemCollection) { this.m_parent = parent; this.m_list = new ArrayList(); this.m_ToolbarItemCollection = aToolbarItemCollection; }
public TabPagesCollection(Resco.Controls.CommonControls.TabControl parent, ToolbarItemCollection aToolbarItemCollection) { this.m_parent = parent; this.m_list = new ArrayList(); this.m_ToolbarItemCollection = aToolbarItemCollection; }