예제 #1
0
        private void modifyBtn_Click(object sender, EventArgs e)
        {
            if (firmeGrid.SelectedCells.Count == 0)
            {
                return;
            }
            var firma = (Firma)firmeGrid.Rows[firmeGrid.SelectedCells[0].RowIndex].Tag;
            var form  = new AddEditFirmaForm();

            form.FirmaObject = firma;
            if (form.ShowDialog() == DialogResult.OK)
            {
                RefreshFirmeList();
            }
        }
예제 #2
0
 private void modifyBtn_Click(object sender, EventArgs e)
 {
     if (firmeGrid.SelectedCells.Count == 0) return;
     var firma = (Firma)firmeGrid.Rows[firmeGrid.SelectedCells[0].RowIndex].Tag;
     var form = new AddEditFirmaForm();
     form.FirmaObject = firma;
     if (form.ShowDialog() == DialogResult.OK)
     {
         RefreshFirmeList();
     }
 }