コード例 #1
0
        public ProductsForm IndexAction()
        {
            ProductsForm form = Application.OpenForms["ProductsForm"] == null ? new ProductsForm() : (ProductsForm)Application.OpenForms["ProductsForm"];

            form.Show();
            return(form);
        }
コード例 #2
0
        private void MetroButton1_Click(object sender, EventArgs e)
        {
            ProductsForm pdf = new ProductsForm();

            pdf.Show();
        }