private void btnBack_Click(object sender, EventArgs e) { if (!Kiosk.Instance.PnlContainer.Controls.ContainsKey("UcAccount")) { ua = new UcAccount(); ua.Dock = DockStyle.Fill; Kiosk.Instance.PnlContainer.Controls.Add(ua); } Kiosk.Instance.PnlContainer.Controls["UcAccount"].BringToFront(); }
private void btnWelcome_Click(object sender, EventArgs e) { Kiosk.Instance.Device.Open(); if (!Kiosk.Instance.PnlContainer.Controls.ContainsKey("UcAccount")) { ua = new UcAccount(); ua.Dock = DockStyle.Fill; Kiosk.Instance.PnlContainer.Controls.Add(ua); } else { ua.LoadAccount(); } Kiosk.Instance.PnlContainer.Controls["UcAccount"].BringToFront(); }