Exemplo n.º 1
0
        private void btnDodajNoviZid_Click(object sender, EventArgs e)
        {
            frmZid z = new frmZid();

            z.idStol = -1;
            z.frm    = this;
            z.ShowDialog();

            panelStolovi.Controls.Clear();
            frmOdabirStola_Load(null, null);
        }
Exemplo n.º 2
0
        private void panelZidChange_Click(object sender, EventArgs e)
        {
            if (!uredi)
            {
                return;
            }

            Panel  p = (Panel)sender;
            frmZid z = new frmZid();
            int    id;

            int.TryParse(p.Name.ToString(), out id);
            z.idStol = id;

            z.Top    = p.Location.X;
            z.Left   = p.Location.Y;
            z.Width  = p.Width;
            z.Height = p.Height;
            z.frm    = this;
            z.ShowDialog();

            panelStolovi.Controls.Clear();
            frmOdabirStola_Load(null, null);
        }