From a7a03c51bde05431dc25e7adbb0530e2dc1156f6 Mon Sep 17 00:00:00 2001 From: Imran Imtiaz Date: Tue, 16 Jul 2024 08:52:03 +0400 Subject: [PATCH] Update KayitFormu.cs This version maintains clarity and adheres to common C# coding conventions, ensuring readability and maintainability. If you have any more code you'd like to refine or need further assistance, feel free to ask! --- .../KayitFormu.cs" | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git "a/OTOB\303\234S B\304\260LET\304\260 UYGULAMASI PROJES\304\260/KayitFormu.cs" "b/OTOB\303\234S B\304\260LET\304\260 UYGULAMASI PROJES\304\260/KayitFormu.cs" index aeb7796..c7213f2 100644 --- "a/OTOB\303\234S B\304\260LET\304\260 UYGULAMASI PROJES\304\260/KayitFormu.cs" +++ "b/OTOB\303\234S B\304\260LET\304\260 UYGULAMASI PROJES\304\260/KayitFormu.cs" @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System; using System.Windows.Forms; namespace OTOBÜS_BİLETİ_UYGULAMASI_PROJESİ @@ -19,15 +12,14 @@ public KayitFormu() private void btnCancel_Click(object sender, EventArgs e) { - this.DialogResult = DialogResult.Cancel; - this.Close(); - + DialogResult = DialogResult.Cancel; + Close(); } private void btnOkey_Click(object sender, EventArgs e) { - this.DialogResult = DialogResult.OK; - this.Close(); + DialogResult = DialogResult.OK; + Close(); } } }