private void əlavəEtToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var fm = new CompaniesForm())
     {
         var result = fm.ShowDialog();
         if (result == DialogResult.OK)
         {
             vwCompaniesTableAdapter.Fill(bossDataSet.VwCompanies);
             yeniləToolStripMenuItem_Click(null, null);
         }
     }
 }
        private void redaktəEtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var selected   = vwCompaniesBindingSource.Current as DataRowView;
            var selecteEdu = selected.Row as BossDataSet.VwCompaniesRow;

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