예제 #1
0
        private void selectCategoryButton_Click(object sender, EventArgs e)
        {
            SelectCategories form = new SelectCategories();

            form.db = db;
            form.ShowDialog();
            cat = form.cat;
            CategoryLabel.Text = cat.Name;
        }
        private void selectCategoryButton_Click(object sender, EventArgs e)
        {
            SelectCategories form = new SelectCategories();

            form.db             = db;
            form.button1.Click += (senderS, eS) => {
                strCategory = form.str;
                label3.Text = strCategory;
            };

            form.ShowDialog();
        }