Example #1
0
 private void əlavəEtToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var fm = new SubCategoryForm())
     {
         var result = fm.ShowDialog();
         if (result == DialogResult.OK)
         {
             vwSubCategoryTableAdapter.Fill(bossDataSet1.VwSubCategory);
             yeniləToolStripMenuItem_Click(null, null);
         }
     }
 }
Example #2
0
        private void redaktəEtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var selected   = vwSubCategoryBindingSource.Current as DataRowView;
            var selecteEdu = selected.Row as BossDataSet.VwSubCategoryRow;

            if (selected == null)
            {
                MessageBox.Show("Sətir seçilməyib", "Xəta");
                return;
            }
            using (var fm = new SubCategoryForm(selecteEdu))
            {
                if (fm.ShowDialog() == DialogResult.OK)
                {
                    vwSubCategoryTableAdapter.Fill(bossDataSet1.VwSubCategory);
                    yeniləToolStripMenuItem_Click(null, null);
                }
            }
        }