Exemplo n.º 1
0
 private void MemberPicView_Load(object sender, EventArgs e)
 {
     datam.SecurityCheck();
     datam.SystemInitializer();
     iGrid1.CustomDrawCellForeground += new iGCustomDrawCellEventHandler(iGrid1_CustomDrawCellForeground);
     iGrid1.ClientSizeChanged        += new EventHandler(iGrid1_ClientSizeChanged);
     for (int j = 0; j < 30; j++)
     {
         var         _col    = iGrid1.Cols.Add(string.Format("col{0}", j), string.Format("col{0}", j));
         iGCellStyle myStyle = _col.CellStyle;
         myStyle.CustomDrawFlags |= iGCustomDrawFlags.Foreground;
         myStyle.ReadOnly         = iGBool.True;
         _col.AllowSizing         = false;
     }
 }
Exemplo n.º 2
0
 private void GroupDataPicDisplay_Load(object sender, EventArgs e)
 {
     CenterToScreen();
     view_data = this.Tag as ic.GroupDataPicDisplay;
     if (view_data == null)
     {
         this.Close();
         return;
     }
     label1.Text = view_data.display_title;
     Application.DoEvents();
     iGrid1.CustomDrawCellForeground += new iGCustomDrawCellEventHandler(iGrid1_CustomDrawCellForeground);
     for (int j = 0; j < 30; j++)
     {
         var         _col    = iGrid1.Cols.Add(string.Format("col{0}", j), string.Format("col{0}", j));
         iGCellStyle myStyle = _col.CellStyle;
         myStyle.CustomDrawFlags |= iGCustomDrawFlags.Foreground;
         myStyle.ReadOnly         = iGBool.True;
         _col.AllowSizing         = false;
     }
     m_ret_cols = CalculteColumns();
     LoadPictureGrid();
 }