Beispiel #1
0
 private void cmxDisCatName_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cmxDisCatName.Text == "<new>")
     {
         ARDiscountCategories frm = new ARDiscountCategories();
         frm.ShowDialog();
         cmxDisCatName.Items.Clear();
         SqlDataAdapter Adapter = new SqlDataAdapter("Select * from ARDiscountCategories", GeneralFunctions.ConnectionString);
         Adapter.Fill(this.dbAccountingProjectDS.ARDiscountCategories);
         GeneralFunctions.FillComboBox(this.dbAccountingProjectDS.ARDiscountCategories, this.cmxDisCatName, "CatName", "0");
     }
 }
Beispiel #2
0
        private void discountCategoriesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ARDiscountCategories frm = new ARDiscountCategories();

            frm.ShowDialog();
        }