Ejemplo n.º 1
0
        private void btnSuppliers_Click(object sender, EventArgs e)
        {
            this.deleteSubs();
            SupplierForm supplierForm = new SupplierForm();

            supplierForm.MdiParent = (Form1)this.MdiParent;
            supplierForm.Anchor    = AnchorStyles.Top | AnchorStyles.Right;
            supplierForm.Dock      = DockStyle.Fill;
            supplierForm.Show();
        }
Ejemplo n.º 2
0
        private void SupplierButton_Click(object sender, EventArgs e)
        {
            var form = new SupplierForm
            {
                MdiParent     = this,
                StartPosition = FormStartPosition.CenterScreen
            };

            form.Show();
        }