コード例 #1
0
ファイル: FormMain.cs プロジェクト: SerdarTprk/CarRental
        private void AraçGüncelleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormCarUpdate frm = new FormCarUpdate();

            frm.MdiParent = this;
            frm.Show();
        }
コード例 #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            #region Validation
            if (lstArac.SelectedIndex == -1)
            {
                MessageBox.Show("Önce bir kayıt seçmeniz gerekmektedir.");
                return;
            }
            #endregion

            var           car = (CarDTO)lstArac.SelectedItem;
            FormCarUpdate frm = new FormCarUpdate(car);
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }