Ejemplo n.º 1
0
 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)
     {
     }
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public TabPagesCollection(Resco.Controls.CommonControls.TabControl parent, ToolbarItemCollection aToolbarItemCollection)
 {
     this.m_parent = parent;
     this.m_list = new ArrayList();
     this.m_ToolbarItemCollection = aToolbarItemCollection;
 }
Ejemplo n.º 5
0
 public TabPagesCollection(Resco.Controls.CommonControls.TabControl parent, ToolbarItemCollection aToolbarItemCollection)
 {
     this.m_parent = parent;
     this.m_list   = new ArrayList();
     this.m_ToolbarItemCollection = aToolbarItemCollection;
 }