09/13일 작
This commit is contained in:
@@ -1,52 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace StaffLayoutCtl
|
||||
{
|
||||
public partial class grid
|
||||
{
|
||||
public class CGrid
|
||||
{
|
||||
public System.Drawing.RectangleF Rect { get; set; }
|
||||
public int Row { get; set; }
|
||||
public int Col { get; set; }
|
||||
public int IDX { get; set; }
|
||||
public CGrid(int idx_)
|
||||
{
|
||||
this.IDX = idx_;
|
||||
}
|
||||
}
|
||||
public class CItem
|
||||
{
|
||||
public System.Drawing.RectangleF Rect { get; set; }
|
||||
public Boolean Select { get; set; }
|
||||
public int Row { get; set; }
|
||||
public int Col { get; set; }
|
||||
public int ColSpan { get; set; }
|
||||
public int RowSpan { get; set; }
|
||||
public string Text { get; set; }
|
||||
public System.Drawing.Color bgColor { get; set; }
|
||||
public System.Drawing.Color fgColor { get; set; }
|
||||
public CItem()
|
||||
{
|
||||
if (ColSpan == 0) ColSpan = 1;
|
||||
if (RowSpan == 0) RowSpan = 1;
|
||||
bgColor = System.Drawing.Color.White;
|
||||
fgColor = System.Drawing.Color.Black;
|
||||
}
|
||||
public CItem(int r,int c, int rs=1,int cs=1,string text="",int bg=-1,int fg=-1)
|
||||
{
|
||||
this.Row = r;
|
||||
this.Col = c;
|
||||
this.RowSpan = rs;
|
||||
this.ColSpan = cs;
|
||||
this.Text = text;
|
||||
if (bg != -1) this.bgColor = System.Drawing.Color.FromArgb(bg);
|
||||
if (fg != -1) this.fgColor = System.Drawing.Color.FromArgb(fg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace StaffLayoutCtl
|
||||
{
|
||||
public partial class grid
|
||||
{
|
||||
public class CGrid
|
||||
{
|
||||
public System.Drawing.RectangleF Rect { get; set; }
|
||||
public int Row { get; set; }
|
||||
public int Col { get; set; }
|
||||
public int IDX { get; set; }
|
||||
public CGrid(int idx_)
|
||||
{
|
||||
this.IDX = idx_;
|
||||
}
|
||||
}
|
||||
public class CItem
|
||||
{
|
||||
public System.Drawing.RectangleF Rect { get; set; }
|
||||
public Boolean Select { get; set; }
|
||||
public int Row { get; set; }
|
||||
public int Col { get; set; }
|
||||
public int ColSpan { get; set; }
|
||||
public int RowSpan { get; set; }
|
||||
public string Text { get; set; }
|
||||
public System.Drawing.Color bgColor { get; set; }
|
||||
public System.Drawing.Color fgColor { get; set; }
|
||||
public CItem()
|
||||
{
|
||||
if (ColSpan == 0) ColSpan = 1;
|
||||
if (RowSpan == 0) RowSpan = 1;
|
||||
bgColor = System.Drawing.Color.White;
|
||||
fgColor = System.Drawing.Color.Black;
|
||||
}
|
||||
public CItem(int r,int c, int rs=1,int cs=1,string text="",int bg=-1,int fg=-1)
|
||||
{
|
||||
this.Row = r;
|
||||
this.Col = c;
|
||||
this.RowSpan = rs;
|
||||
this.ColSpan = cs;
|
||||
this.Text = text;
|
||||
if (bg != -1) this.bgColor = System.Drawing.Color.FromArgb(bg);
|
||||
if (fg != -1) this.fgColor = System.Drawing.Color.FromArgb(fg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user