Ejemplo n.º 1
0
        public AdminSearchProductStockIn(AdminStockIn flist)
        {
            InitializeComponent();
            slist = flist;
            cn    = new SqlConnection(dbcon.MyConnection());

            this.KeyPreview = true;
        }
Ejemplo n.º 2
0
        private void BtnStockIn_Click(object sender, EventArgs e)
        {
            if (!AdminAdministrator.Instance.PnlContainer.Controls.ContainsKey("AdminStockIn"))
            {
                AdminStockIn stin = new AdminStockIn();
                stin.Dock = DockStyle.Fill;
                AdminAdministrator.Instance.PnlContainer.Controls.Add(stin);

                stin.txtStockby.Text = AdminAdministrator.PassStockInName;
            }
            AdminAdministrator.Instance.PnlContainer.Controls["AdminStockIn"].BringToFront();
            AdminAdministrator.Instance.BackButton.Visible = true;
        }