Exemplo n.º 1
0
        public PanelLayout()
        {
            this.Size = new Size(1022, 660);
            this.Location = new Point(1, 54);

            button a = new button();
            a.Text = "asdasd";
            a.Location = new Point(20, 30);
            a.Size = new Size(50, 50);
            this.Controls.Add(a);
            mangButton.Add(a);
            color1 = Color.White;
            color2 = Color.HotPink;
        }
Exemplo n.º 2
0
 public ArrayList getArrayButton(string storeID,string sectionName)
 {
     ArrayList mangButton = new ArrayList();
     DataTable tbl =  getGui.get_Array_button(storeID, sectionName);
     for (int i = 0; i < tbl.Rows.Count; i++)
     {
         int x = (int)tbl.Rows[i][4];
         int y = (int)tbl.Rows[i][5];
         int height = (int)tbl.Rows[i][6];
         int width = (int)tbl.Rows[i][7];
         var tmpBut = new button(x, y, width, height);
         mangButton.Add(tmpBut);
     }
     return mangButton;
 }
Exemplo n.º 3
0
        public PanelLayout()
        {
            this.Size     = new Size(1022, 660);
            this.Location = new Point(1, 54);

            button a = new button();

            a.Text     = "asdasd";
            a.Location = new Point(20, 30);
            a.Size     = new Size(50, 50);
            this.Controls.Add(a);
            mangButton.Add(a);
            color1 = Color.White;
            color2 = Color.HotPink;
        }
Exemplo n.º 4
0
        public FrmLayout()
        {
            InitializeComponent();
            sections = new ArrayList();

            for (int i = 1; i < 8; i++)
            {
                sections.Add(i.ToString());
                ArrayList tmp = new ArrayList();
                button aa = new button(100,100,50,50);
                aa.Text = i.ToString();
                tmp.Add(aa);
                PanelLayout panel = new PanelLayout(tmp,i.ToString());
                listPanel.Add(i.ToString(),panel);
                this.Controls.Add((PanelLayout)listPanel[i.ToString()]);
            }
        }
Exemplo n.º 5
0
        private void setChoseButton(object b)
        {
            btnSale.Color1 = Color.Blue;
            btnSale.Color2 = Color.Blue;

            btnCustomer.Color1 = Color.Blue;
            btnCustomer.Color2 = Color.Blue;

            btnEmployee.Color1 = Color.Blue;
            btnEmployee.Color2 = Color.Blue;

            btnRestaurant.Color1 = Color.Blue;
            btnRestaurant.Color2 = Color.Blue;

            btnInvoice.Color1 = Color.Blue;
            btnInvoice.Color2 = Color.Blue;
            WindowsFormsApplication4.Controls.button my = (button)b;
            my.Color1 = Color.Green;
            my.Color2 = Color.Green;
        }