private void Form1_Load(object sender, EventArgs e) { global::ClassLibrary2.ClsCategories x = new ClassLibrary2.ClsCategories(); }
private void button5_Click(object sender, EventArgs e) { global::ClassLibrary2.ClsCategories x = new ClassLibrary2.ClsCategories(); this.dataGridView1.DataSource = x.GetCategoryList(); }