예제 #1
0
        public JQMetroEditForm(JQMetro jqm, IDesignerHost host)
        {
            metro = jqm;
            InitializeComponent();

            DataTable tableSize = new DataTable();
            tableSize.Columns.Add("Value");
            tableSize.Columns.Add("Name");
            tableSize.Rows.Add(new object[] { SizeType.s, "square" });
            tableSize.Rows.Add(new object[] { SizeType.m, "wide" });
            tableSize.Rows.Add(new object[] { SizeType.l, "squarepeek" });
            tableSize.Rows.Add(new object[] { SizeType.h, "widepeek" });
            tableSize.Rows.Add(new object[] { SizeType.a, "app" });
            this.cmbSize.DataSource = tableSize;
            this.cmbSize.DisplayMember = "Name";
            this.cmbSize.ValueMember = "Value";

            DataTable tableBDColor = new DataTable();
            tableBDColor.Columns.Add("Value");
            tableBDColor.Columns.Add("Name");
            tableBDColor.Rows.Add(new object[] { "orange", "orange" });
            tableBDColor.Rows.Add(new object[] { "purple", "purple" });
            tableBDColor.Rows.Add(new object[] { "greenDark", "greenDark" });
            tableBDColor.Rows.Add(new object[] { "blue", "blue" });
            tableBDColor.Rows.Add(new object[] { "red", "red" });
            tableBDColor.Rows.Add(new object[] { "green", "green" });
            tableBDColor.Rows.Add(new object[] { "blueDark", "blueDark" });
            tableBDColor.Rows.Add(new object[] { "yellow", "yellow" });
            tableBDColor.Rows.Add(new object[] { "pink", "pink" });
            tableBDColor.Rows.Add(new object[] { "darken", "darken" });
            tableBDColor.Rows.Add(new object[] { "gray", "gray" });
            tableBDColor.Rows.Add(new object[] { "grayLight", "grayLight" });
            this.cmbBGColor.DataSource = tableBDColor;
            this.cmbBGColor.DisplayMember = "Name";
            this.cmbBGColor.ValueMember = "Value";

            DataTable tableStyle = new DataTable();
            tableStyle.Columns.Add("Value");
            tableStyle.Columns.Add("Name");
            tableStyle.Rows.Add(new object[] { StyleType.N, "None" });
            tableStyle.Rows.Add(new object[] { StyleType.G, "DataGrid" });
            tableStyle.Rows.Add(new object[] { StyleType.F, "DataForm" });
            tableStyle.Rows.Add(new object[] { StyleType.C, "Chart" });
            tableStyle.Rows.Add(new object[] { StyleType.D, "Dashboard" });
            tableStyle.Rows.Add(new object[] { StyleType.I, "Image" });
            tableStyle.Rows.Add(new object[] { StyleType.T, "Text" });
            this.cbStyle.DataSource = tableStyle;
            this.cbStyle.DisplayMember = "Name";
            this.cbStyle.ValueMember = "Value";
        }
예제 #2
0
파일: JQMetro.cs 프로젝트: san90279/UK_OAS
 public JQMetroActionList(IComponent component)
     : base(component)
 {
     jqm = component as JQMetro;
 }