Ejemplo n.º 1
0
 public void Remove(RowTemplate value)
 {
     base.List.Remove(value);
 }
Ejemplo n.º 2
0
 public int Add(RowTemplate value)
 {
     return(base.List.Add(value));
 }
Ejemplo n.º 3
0
 private RowTemplate ReadRowTemplate(XmlReader reader)
 {
     RowTemplate o = new RowTemplate();
     o.Name = reader["Name"];
     try
     {
         string str = reader["Height"];
         if (str != null)
         {
             o.Height = Convert.ToInt32(str);
         }
     }
     catch
     {
     }
     if (!reader.IsEmptyElement)
     {
     Label_011E:
         if (!reader.Read())
         {
             return o;
         }
         try
         {
             string str2;
             if (((str2 = reader.Name) == null) || (str2 == ""))
             {
                 goto Label_011E;
             }
             if (!(str2 == "RowTemplate"))
             {
                 if (str2 == "Cell")
                 {
                     goto Label_00A6;
                 }
                 if (str2 == "Property")
                 {
                     goto Label_00BB;
                 }
                 goto Label_0101;
             }
             if (this._designTimeCallback != null)
             {
                 this._designTimeCallback(o, null);
             }
             return o;
         Label_00A6:
             o.CellTemplates.Add(this.ReadCell(reader));
             goto Label_011E;
         Label_00BB:
             if ((reader.HasAttributes && (reader["Name"] != null)) && (reader["Value"] != null))
             {
                 this.m_conversion.SetProperty(o, reader["Name"], reader["Value"]);
             }
             goto Label_011E;
         Label_0101:
             this.m_conversion.SetProperty(o, reader.Name, reader.ReadString());
         }
         catch
         {
         }
         goto Label_011E;
     }
     return o;
 }
Ejemplo n.º 4
0
        public void InitContactPanel()
        {
            base.InitializeComponent();
            this.title.Text   = "四湖客-联系人";
            this.left.Visible = false;
            this.right.Text   = "添加";
            this.right.Click += new EventHandler(rightbutton_Click);

            this.contacts        = new Resco.Controls.AdvancedList.AdvancedList();
            this.letterBar       = new Resco.Controls.ScrollBar.LetterBar();
            this.vScrollBar1     = new Resco.Controls.ScrollBar.VScrollBar();
            this.scrollVBarTrack = new Resco.Controls.ScrollBar.ScrollBarTrack();
            this.scrollBarVThumb = new Resco.Controls.ScrollBar.ScrollBarThumb();
            this.RowTemplate     = new Resco.Controls.AdvancedList.RowTemplate();
            this.nameCell        = new Resco.Controls.AdvancedList.TextCell();
            this.photoCell       = new Resco.Controls.AdvancedList.ButtonCell();
            this.phoneCell       = new Resco.Controls.AdvancedList.ButtonCell();
            this.msgCell         = new Resco.Controls.AdvancedList.ButtonCell();
            this.locationCell    = new Resco.Controls.AdvancedList.ButtonCell();
            this.cityCell        = new Resco.Controls.AdvancedList.ButtonCell();
            this.contacts.SuspendLayout();

            //
            // RowTemplate
            //
            this.RowTemplate.BackColor = System.Drawing.Color.Gainsboro;
            this.RowTemplate.CellTemplates.Add(this.photoCell);
            this.RowTemplate.CellTemplates.Add(this.nameCell);
            this.RowTemplate.CellTemplates.Add(this.phoneCell);
            this.RowTemplate.CellTemplates.Add(this.msgCell);
            this.RowTemplate.CellTemplates.Add(this.locationCell);
            this.RowTemplate.CellTemplates.Add(this.cityCell);
            this.RowTemplate.Height = 35;
            this.RowTemplate.Name   = "RowTemplate";
            //
            // nameCell
            //
            this.nameCell.CellSource.ColumnName = "name";
            this.nameCell.Location = new System.Drawing.Point(35, 5);
            this.nameCell.Name     = "name";
            this.nameCell.Size     = new System.Drawing.Size(90, 25);
            this.nameCell.TextFont = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold);

            //
            // photoCell
            //
            this.photoCell.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.photoCell.BorderColor           = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.photoCell.CellSource.ColumnName = "photo";
            this.photoCell.ImageAlignment        = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.photoCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell1.ImageDefault")));
            //this.photoCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell1.ImagePressed")));
            this.photoCell.Location           = new System.Drawing.Point(4, 5);
            this.photoCell.Name               = "photo";
            this.photoCell.PressedBackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.photoCell.PressedBorderColor = System.Drawing.Color.Black;
            this.photoCell.PressedForeColor   = System.Drawing.Color.White;
            this.photoCell.Selectable         = false;
            this.photoCell.Size               = new System.Drawing.Size(25, 25);
            this.photoCell.Text               = "Photo";
            this.photoCell.TextAlignment      = Resco.Controls.AdvancedList.Alignment.BottomCenter;
            //
            // PhoneCell
            //
            this.phoneCell.BackColor      = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.phoneCell.BorderColor    = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.phoneCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.phoneCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell2.ImageDefault")));
            //this.phoneCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell2.ImagePressed")));
            this.phoneCell.Location           = new System.Drawing.Point(130, 7);
            this.phoneCell.Name               = "PhoneCell";
            this.phoneCell.PressedBackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.phoneCell.PressedBorderColor = System.Drawing.Color.Black;
            this.phoneCell.PressedForeColor   = System.Drawing.Color.White;
            this.phoneCell.Selectable         = false;
            this.phoneCell.Size               = new System.Drawing.Size(20, 20);
            this.phoneCell.Text               = "Phone";
            this.phoneCell.TextAlignment      = Resco.Controls.AdvancedList.Alignment.BottomCenter;
            //
            // msgCell
            //
            this.msgCell.BackColor      = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.msgCell.BorderColor    = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.msgCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.msgCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell3.ImageDefault")));
            //this.msgCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell3.ImagePressed")));
            this.msgCell.Location           = new System.Drawing.Point(151, 7);
            this.msgCell.Name               = "MsgCell";
            this.msgCell.PressedBackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.msgCell.PressedBorderColor = System.Drawing.Color.Black;
            this.msgCell.PressedForeColor   = System.Drawing.Color.White;
            this.msgCell.Selectable         = false;
            this.msgCell.Size               = new System.Drawing.Size(20, 20);
            this.msgCell.Text               = "Msg";
            this.msgCell.TextAlignment      = Resco.Controls.AdvancedList.Alignment.BottomCenter;
            //
            // locationCell
            //
            this.locationCell.Anchor         = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.locationCell.BackColor      = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.locationCell.BorderColor    = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.locationCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.locationCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell4.ImageDefault")));
            //this.locationCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell4.ImagePressed")));
            this.locationCell.Location           = new System.Drawing.Point(186, 57);
            this.locationCell.Name               = "locationCell";
            this.locationCell.PressedBackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.locationCell.PressedBorderColor = System.Drawing.Color.Black;
            this.locationCell.PressedForeColor   = System.Drawing.Color.White;
            this.locationCell.Selectable         = true;
            this.locationCell.Size               = new System.Drawing.Size(50, 45);
            this.locationCell.Text               = "Loc";
            this.locationCell.TextAlignment      = Resco.Controls.AdvancedList.Alignment.BottomCenter;
            //
            // cityCell
            //
            this.cityCell.Anchor         = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cityCell.BackColor      = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.cityCell.BorderColor    = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.cityCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.cityCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell4.ImageDefault")));
            //this.cityCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell4.ImagePressed")));
            this.cityCell.Location           = new System.Drawing.Point(186, 57);
            this.cityCell.Name               = "cityCell";
            this.cityCell.PressedBackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.cityCell.PressedBorderColor = System.Drawing.Color.Black;
            this.cityCell.PressedForeColor   = System.Drawing.Color.White;
            this.cityCell.Selectable         = true;
            this.cityCell.Size               = new System.Drawing.Size(50, 45);
            this.cityCell.Text               = "City";
            this.cityCell.TextAlignment      = Resco.Controls.AdvancedList.Alignment.BottomCenter;

            this.contacts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
            this.contacts.Controls.Add(this.vScrollBar1);
            this.contacts.DataRows.Clear();
            this.contacts.DataSource            = null;
            this.contacts.Location              = new System.Drawing.Point(0, 56);
            this.contacts.Name                  = "ContactList";
            this.contacts.ScrollBar             = this.vScrollBar1;
            this.contacts.ScrollbarWidth        = 24;
            this.contacts.SelectedTemplateIndex = 1;
            this.contacts.Size                  = new System.Drawing.Size(240, 202);
            this.contacts.TabIndex              = 0;
            this.contacts.Templates.Add(this.RowTemplate);
            this.contacts.TouchScrolling = true;
            this.contacts.ButtonClick   += new Resco.Controls.AdvancedList.ButtonEventHandler(this.contacts_ButtonClick);
            //
            // vScrollBar1
            //
            this.vScrollBar1.ArrowButtonsLayout = Resco.Controls.ScrollBar.ScrollBarArrowButtonsLayout.Hidden;
            this.vScrollBar1.BackColor          = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
            this.vScrollBar1.Dock               = System.Windows.Forms.DockStyle.Right;
            this.vScrollBar1.Extension          = this.letterBar;
            this.vScrollBar1.ExtensionVisible   = true;
            this.vScrollBar1.ExtensionWidth     = 20;
            this.vScrollBar1.ForeColor          = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.vScrollBar1.HighTrack          = this.scrollVBarTrack;
            this.vScrollBar1.HighTrackDisabled  = this.scrollVBarTrack;
            this.vScrollBar1.HighTrackHighlight = this.scrollVBarTrack;
            this.vScrollBar1.LargeChange        = 1;
            this.vScrollBar1.Location           = new System.Drawing.Point(216, 0);
            this.vScrollBar1.LowTrack           = this.scrollVBarTrack;
            this.vScrollBar1.LowTrackDisabled   = this.scrollVBarTrack;
            this.vScrollBar1.LowTrackHighlight  = this.scrollVBarTrack;
            this.vScrollBar1.Maximum            = 0;
            this.vScrollBar1.Name               = "vScrollBar1";
            this.vScrollBar1.Size               = new System.Drawing.Size(24, 202);
            this.vScrollBar1.TabIndex           = 3;
            this.vScrollBar1.TabStop            = false;
            this.vScrollBar1.Thumb              = this.scrollBarVThumb;
            this.vScrollBar1.ThumbDisabled      = this.scrollBarVThumb;
            this.vScrollBar1.ThumbHighlight     = this.scrollBarVThumb;
            //
            // letterBar
            //
            this.letterBar.BorderStyle   = Resco.Controls.ScrollBar.ScrollBarBorderStyle.None;
            this.letterBar.Font          = new System.Drawing.Font("Tahoma", 6F, System.Drawing.FontStyle.Regular);
            this.letterBar.GradientColor = new Resco.Controls.ScrollBar.GradientColor(System.Drawing.Color.SkyBlue, System.Drawing.Color.Transparent, System.Drawing.Color.Transparent, System.Drawing.Color.DodgerBlue, 50, 50, Resco.Controls.ScrollBar.FillDirection.Vertical);
            this.letterBar.IndexToValue += new Resco.Controls.ScrollBar.ScrollBarExtensionBase.ValueIndexConversionHandler(this.letterBar_IndexToValue);
            this.letterBar.ValueToIndex += new Resco.Controls.ScrollBar.ScrollBarExtensionBase.ValueIndexConversionHandler(this.letterBar_ValueToIndex);
            //
            // scrollVBarTrack
            //
            this.scrollVBarTrack.BorderStyle = Resco.Controls.ScrollBar.ScrollBarBorderStyle.None;
            //
            // scrollBarVThumb
            //
            this.scrollBarVThumb.BorderStyle   = Resco.Controls.ScrollBar.ScrollBarBorderStyle.None;
            this.scrollBarVThumb.GradientColor = new Resco.Controls.ScrollBar.GradientColor(System.Drawing.Color.White, System.Drawing.Color.Black, System.Drawing.Color.Black, System.Drawing.Color.White, 30, 70, Resco.Controls.ScrollBar.FillDirection.Vertical);
            this.scrollBarVThumb.GripStyle     = Resco.Controls.ScrollBar.ScrollBarThumb.ScrollBarThumbGripStyle.None;

            this.Controls.Add(this.contacts);
            this.contacts.ResumeLayout(false);
            this.toppanel.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Ejemplo n.º 5
0
 internal static void DisposeDefaultRowTemplate()
 {
     sDefault = null;
 }
Ejemplo n.º 6
0
 internal void ResetCachedBounds(RowTemplate rt)
 {
     foreach (Row row in base.List)
     {
         if ((rt == null) || (row.Template == rt))
         {
             row.ResetCachedBounds();
         }
     }
 }
Ejemplo n.º 7
0
 public int IndexOf(RowTemplate value)
 {
     return base.List.IndexOf(value);
 }
Ejemplo n.º 8
0
 public void Insert(int index, RowTemplate value)
 {
     base.List.Insert(index, value);
 }
Ejemplo n.º 9
0
 internal static void DisposeDefaultRowTemplate()
 {
     sDefault = null;
 }
Ejemplo n.º 10
0
 public CellCollection(RowTemplate rt)
 {
     this.m_Owner = rt;
 }
Ejemplo n.º 11
0
 public virtual RowTemplate Clone()
 {
     RowTemplate template = new RowTemplate();
     foreach (Cell cell in this.m_CellTemplates)
     {
         template.CellTemplates.Add(cell.Clone());
     }
     template.BackColor = this.BackColor;
     template.ForeColor = this.ForeColor;
     template.GradientBackColor = new GradientColor(this.GradientBackColor.StartColor, this.GradientBackColor.MiddleColor1, this.GradientBackColor.MiddleColor2, this.GradientBackColor.EndColor, this.GradientBackColor.FillDirection);
     template.GradientBackColor.PropertyChanged += new EventHandler(this.m_gradientBackColor_PropertyChanged);
     template.Height = this.Height;
     template.Name = this.Name;
     return template;
 }
Ejemplo n.º 12
0
 private RefreshData(RowTemplate rt, bool bResetBounds)
 {
     this.Template = rt;
     this.ResetBounds = bResetBounds;
 }
Ejemplo n.º 13
0
 public RefreshData(RowTemplate rt)
     : this(rt, true)
 {
 }
Ejemplo n.º 14
0
 public bool Contains(RowTemplate value)
 {
     return(base.List.Contains(value));
 }
Ejemplo n.º 15
0
 public void Insert(int index, RowTemplate value)
 {
     base.List.Insert(index, value);
 }
Ejemplo n.º 16
0
 public int IndexOf(RowTemplate value)
 {
     return(base.List.IndexOf(value));
 }
Ejemplo n.º 17
0
 public void Remove(RowTemplate value)
 {
     base.List.Remove(value);
 }
Ejemplo n.º 18
0
 public CellCollection(RowTemplate rt)
 {
     this.m_Owner = rt;
 }
Ejemplo n.º 19
0
 public int Add(RowTemplate value)
 {
     return base.List.Add(value);
 }
Ejemplo n.º 20
0
        public void InitContactPanel()
        {
            base.InitializeComponent();
            this.title.Text = "四湖客-联系人";
            this.left.Visible = false;
            this.right.Text = "添加";
            this.right.Click += new EventHandler(rightbutton_Click);

            this.contacts = new Resco.Controls.AdvancedList.AdvancedList();
            this.letterBar = new Resco.Controls.ScrollBar.LetterBar();
            this.vScrollBar1 = new Resco.Controls.ScrollBar.VScrollBar();
            this.scrollVBarTrack = new Resco.Controls.ScrollBar.ScrollBarTrack();
            this.scrollBarVThumb = new Resco.Controls.ScrollBar.ScrollBarThumb();
            this.RowTemplate = new Resco.Controls.AdvancedList.RowTemplate();
            this.nameCell = new Resco.Controls.AdvancedList.TextCell();
            this.photoCell = new Resco.Controls.AdvancedList.ButtonCell();
            this.phoneCell = new Resco.Controls.AdvancedList.ButtonCell();
            this.msgCell = new Resco.Controls.AdvancedList.ButtonCell();
            this.locationCell = new Resco.Controls.AdvancedList.ButtonCell();
            this.cityCell = new Resco.Controls.AdvancedList.ButtonCell();
            this.contacts.SuspendLayout();

            //
            // RowTemplate
            //
            this.RowTemplate.BackColor = System.Drawing.Color.Gainsboro;
            this.RowTemplate.CellTemplates.Add(this.photoCell);
            this.RowTemplate.CellTemplates.Add(this.nameCell);
            this.RowTemplate.CellTemplates.Add(this.phoneCell);
            this.RowTemplate.CellTemplates.Add(this.msgCell);
            this.RowTemplate.CellTemplates.Add(this.locationCell);
            this.RowTemplate.CellTemplates.Add(this.cityCell);
            this.RowTemplate.Height = 35;
            this.RowTemplate.Name = "RowTemplate";
            //
            // nameCell
            //
            this.nameCell.CellSource.ColumnName = "name";
            this.nameCell.Location = new System.Drawing.Point(35, 5);
            this.nameCell.Name = "name";
            this.nameCell.Size = new System.Drawing.Size(90, 25);
            this.nameCell.TextFont = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold);

            //
            // photoCell
            //
            this.photoCell.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.photoCell.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.photoCell.CellSource.ColumnName = "photo";
            this.photoCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.photoCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell1.ImageDefault")));
            //this.photoCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell1.ImagePressed")));
            this.photoCell.Location = new System.Drawing.Point(4, 5);
            this.photoCell.Name = "photo";
            this.photoCell.PressedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.photoCell.PressedBorderColor = System.Drawing.Color.Black;
            this.photoCell.PressedForeColor = System.Drawing.Color.White;
            this.photoCell.Selectable = false;
            this.photoCell.Size = new System.Drawing.Size(25, 25);
            this.photoCell.Text = "Photo";
            this.photoCell.TextAlignment = Resco.Controls.AdvancedList.Alignment.BottomCenter;
            //
            // PhoneCell
            //
            this.phoneCell.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.phoneCell.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.phoneCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.phoneCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell2.ImageDefault")));
            //this.phoneCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell2.ImagePressed")));
            this.phoneCell.Location = new System.Drawing.Point(130, 7);
            this.phoneCell.Name = "PhoneCell";
            this.phoneCell.PressedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.phoneCell.PressedBorderColor = System.Drawing.Color.Black;
            this.phoneCell.PressedForeColor = System.Drawing.Color.White;
            this.phoneCell.Selectable = false;
            this.phoneCell.Size = new System.Drawing.Size(20, 20);
            this.phoneCell.Text = "Phone";
            this.phoneCell.TextAlignment = Resco.Controls.AdvancedList.Alignment.BottomCenter;
            //
            // msgCell
            //
            this.msgCell.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.msgCell.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.msgCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.msgCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell3.ImageDefault")));
            //this.msgCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell3.ImagePressed")));
            this.msgCell.Location = new System.Drawing.Point(151, 7);
            this.msgCell.Name = "MsgCell";
            this.msgCell.PressedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.msgCell.PressedBorderColor = System.Drawing.Color.Black;
            this.msgCell.PressedForeColor = System.Drawing.Color.White;
            this.msgCell.Selectable = false;
            this.msgCell.Size = new System.Drawing.Size(20, 20);
            this.msgCell.Text = "Msg";
            this.msgCell.TextAlignment = Resco.Controls.AdvancedList.Alignment.BottomCenter;
            //
            // locationCell
            //
            this.locationCell.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.locationCell.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.locationCell.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.locationCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.locationCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell4.ImageDefault")));
            //this.locationCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell4.ImagePressed")));
            this.locationCell.Location = new System.Drawing.Point(186, 57);
            this.locationCell.Name = "locationCell";
            this.locationCell.PressedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.locationCell.PressedBorderColor = System.Drawing.Color.Black;
            this.locationCell.PressedForeColor = System.Drawing.Color.White;
            this.locationCell.Selectable = true;
            this.locationCell.Size = new System.Drawing.Size(50, 45);
            this.locationCell.Text = "Loc";
            this.locationCell.TextAlignment = Resco.Controls.AdvancedList.Alignment.BottomCenter;
            //
            // cityCell
            //
            this.cityCell.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cityCell.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.cityCell.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(237)))), ((int)(((byte)(221)))));
            this.cityCell.ImageAlignment = Resco.Controls.AdvancedList.Alignment.TopCenter;
            //this.cityCell.ImageDefault = ((System.Drawing.Image)(resources.GetObject("buttonCell4.ImageDefault")));
            //this.cityCell.ImagePressed = ((System.Drawing.Image)(resources.GetObject("buttonCell4.ImagePressed")));
            this.cityCell.Location = new System.Drawing.Point(186, 57);
            this.cityCell.Name = "cityCell";
            this.cityCell.PressedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(153)))), ((int)(((byte)(51)))));
            this.cityCell.PressedBorderColor = System.Drawing.Color.Black;
            this.cityCell.PressedForeColor = System.Drawing.Color.White;
            this.cityCell.Selectable = true;
            this.cityCell.Size = new System.Drawing.Size(50, 45);
            this.cityCell.Text = "City";
            this.cityCell.TextAlignment = Resco.Controls.AdvancedList.Alignment.BottomCenter;

            this.contacts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.contacts.Controls.Add(this.vScrollBar1);
            this.contacts.DataRows.Clear();
            this.contacts.DataSource = null;
            this.contacts.Location = new System.Drawing.Point(0, 56);
            this.contacts.Name = "ContactList";
            this.contacts.ScrollBar = this.vScrollBar1;
            this.contacts.ScrollbarWidth = 24;
            this.contacts.SelectedTemplateIndex = 1;
            this.contacts.Size = new System.Drawing.Size(240, 202);
            this.contacts.TabIndex = 0;
            this.contacts.Templates.Add(this.RowTemplate);
            this.contacts.TouchScrolling = true;
            this.contacts.ButtonClick += new Resco.Controls.AdvancedList.ButtonEventHandler(this.contacts_ButtonClick);
            //
            // vScrollBar1
            //
            this.vScrollBar1.ArrowButtonsLayout = Resco.Controls.ScrollBar.ScrollBarArrowButtonsLayout.Hidden;
            this.vScrollBar1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
            this.vScrollBar1.Dock = System.Windows.Forms.DockStyle.Right;
            this.vScrollBar1.Extension = this.letterBar;
            this.vScrollBar1.ExtensionVisible = true;
            this.vScrollBar1.ExtensionWidth = 20;
            this.vScrollBar1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.vScrollBar1.HighTrack = this.scrollVBarTrack;
            this.vScrollBar1.HighTrackDisabled = this.scrollVBarTrack;
            this.vScrollBar1.HighTrackHighlight = this.scrollVBarTrack;
            this.vScrollBar1.LargeChange = 1;
            this.vScrollBar1.Location = new System.Drawing.Point(216, 0);
            this.vScrollBar1.LowTrack = this.scrollVBarTrack;
            this.vScrollBar1.LowTrackDisabled = this.scrollVBarTrack;
            this.vScrollBar1.LowTrackHighlight = this.scrollVBarTrack;
            this.vScrollBar1.Maximum = 0;
            this.vScrollBar1.Name = "vScrollBar1";
            this.vScrollBar1.Size = new System.Drawing.Size(24, 202);
            this.vScrollBar1.TabIndex = 3;
            this.vScrollBar1.TabStop = false;
            this.vScrollBar1.Thumb = this.scrollBarVThumb;
            this.vScrollBar1.ThumbDisabled = this.scrollBarVThumb;
            this.vScrollBar1.ThumbHighlight = this.scrollBarVThumb;
            //
            // letterBar
            //
            this.letterBar.BorderStyle = Resco.Controls.ScrollBar.ScrollBarBorderStyle.None;
            this.letterBar.Font = new System.Drawing.Font("Tahoma", 6F, System.Drawing.FontStyle.Regular);
            this.letterBar.GradientColor = new Resco.Controls.ScrollBar.GradientColor(System.Drawing.Color.SkyBlue, System.Drawing.Color.Transparent, System.Drawing.Color.Transparent, System.Drawing.Color.DodgerBlue, 50, 50, Resco.Controls.ScrollBar.FillDirection.Vertical);
            this.letterBar.IndexToValue += new Resco.Controls.ScrollBar.ScrollBarExtensionBase.ValueIndexConversionHandler(this.letterBar_IndexToValue);
            this.letterBar.ValueToIndex += new Resco.Controls.ScrollBar.ScrollBarExtensionBase.ValueIndexConversionHandler(this.letterBar_ValueToIndex);
            //
            // scrollVBarTrack
            //
            this.scrollVBarTrack.BorderStyle = Resco.Controls.ScrollBar.ScrollBarBorderStyle.None;
            //
            // scrollBarVThumb
            //
            this.scrollBarVThumb.BorderStyle = Resco.Controls.ScrollBar.ScrollBarBorderStyle.None;
            this.scrollBarVThumb.GradientColor = new Resco.Controls.ScrollBar.GradientColor(System.Drawing.Color.White, System.Drawing.Color.Black, System.Drawing.Color.Black, System.Drawing.Color.White, 30, 70, Resco.Controls.ScrollBar.FillDirection.Vertical);
            this.scrollBarVThumb.GripStyle = Resco.Controls.ScrollBar.ScrollBarThumb.ScrollBarThumbGripStyle.None;

            this.Controls.Add(this.contacts);
            this.contacts.ResumeLayout(false);
            this.toppanel.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Ejemplo n.º 21
0
 public bool Contains(RowTemplate value)
 {
     return base.List.Contains(value);
 }
Ejemplo n.º 22
0
        internal void OnRowChange(object sender, RowEventArgsType e, object oParam)
        {
            object      obj2     = oParam;
            Row         r        = (Row)sender;
            RowTemplate template = this.GetTemplate(r);

            switch (e)
            {
            case RowEventArgsType.Selection:
            {
                if (!r.Selected)
                {
                    if (this.m_cSelected > 0)
                    {
                        this.m_cSelected--;
                    }
                    if (r != this.m_rActive)
                    {
                        break;
                    }
                    this.m_rActive = null;
                    return;
                }
                bool flag = (bool)oParam;
                if (this.m_rActive != null)
                {
                    this.m_rActive.ChangeSelection(this.Parent.MultiSelect, false, false);
                }
                if (!flag)
                {
                    this.m_cSelected = this.m_pParent.MultiSelect ? (this.m_cSelected + 1) : 1;
                }
                this.m_rActive = r;
                return;
            }

            case RowEventArgsType.TemplateIndex:
            {
                int num = 0;
                num = -this.GetTemplate(r, (int)oParam).GetHeight(r);
                r.ResetCachedBounds();
                num += template.GetHeight(r);
                this.OnChanged(base.List.IndexOf(r), GridEventArgsType.Resize, num);
                return;
            }

            default:
                if (template.AutoHeight)
                {
                    int actualHeight = r.ActualHeight;
                    r.ResetCachedBounds();
                    int height = template.GetHeight(r);
                    if (height != actualHeight)
                    {
                        this.OnChanged(base.List.IndexOf(r), GridEventArgsType.Resize, height - actualHeight);
                        return;
                    }
                }
                this.Changed(base.List.IndexOf(sender), GridEventArgsType.RowChange, obj2);
                break;
            }
        }
Ejemplo n.º 23
0
 private int CustomizeHeaderFooter(RowTemplate t, Row r, ref bool bResetScrollbar)
 {
     int num2 = -1;
     if (t.CustomizeCells(r))
     {
         num2 = t.GetHeight(r);
         r.ResetCachedBounds();
     }
     int height = t.GetHeight(r);
     if ((num2 >= 0) && (height != num2))
     {
         bResetScrollbar = true;
     }
     return height;
 }