示例#1
0
        /// <summary>
        /// Evrağı düzenle
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnDuzenle_Click(object sender, EventArgs e)
        {
            var rowId             = (long)gridviewGelenEvraklar.GetRowCellValue(gridviewGelenEvraklar.FocusedRowHandle, "Id");
            var gelenEvrakDuzenle = new YeniGelenEvrak(new KayitDuzenleDTO
            {
                Duzenleme = true,
                EvrakId   = rowId,
                EvrakTip  = EvrakTip.GelenEvrak
            });

            gelenEvrakDuzenle.ShowDialog();
            RefreshGridDataSource();
        }
示例#2
0
        /// <summary>
        /// Yeni Gelen Evrak
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnYeniGelenEvrak_Click(object sender, ItemClickEventArgs e)
        {
            var isOpen = false;

            foreach (var f in from Form f in Application.OpenForms where f.Text == "Yeni Gelen Evrak" select f)
            {
                isOpen = true;
                f.Focus();
                break;
            }

            if (isOpen)
            {
                return;
            }
            var child = new YeniGelenEvrak(new KayitDuzenleDTO())
            {
                MdiParent = this
            };

            child.Show();
        }