private void btnDuzenle_Click(object sender, EventArgs e)
        {
            var rowId = gridVMuzekkereIcmalDefteri.GetRowCellValue(gridVMuzekkereIcmalDefteri.FocusedRowHandle, "Id");

            var icmalDuzenle = new YeniMuzekkereIcmal(new KayitDuzenleDTO
            {
                Duzenleme = true,
                EvrakId   = int.Parse(rowId.ToString()),
                EvrakTip  = EvrakTip.MuzekkereIcmal
            });

            icmalDuzenle.ShowDialog();
            RefreshGridDataSource();
        }
Example #2
0
        /// <summary>
        /// Müzekkere İcmal
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnYeniMuzekkereIcmal_ItemClick(object sender, ItemClickEventArgs e)
        {
            var isOpen = false;

            foreach (var f in from Form f in Application.OpenForms where f.Text == "Müzekkere İcmal" select f)
            {
                isOpen = true;
                f.Focus();
                break;
            }
            if (isOpen)
            {
                return;
            }
            var child = new YeniMuzekkereIcmal(new KayitDuzenleDTO {
                Duzenleme = false
            })
            {
                MdiParent = this
            };

            child.Show();
        }