public LoginForm() { InitializeComponent(); Commands.Add(new Command() { Name = "Login", IsEnabledMethod = IsEnabledLogin, ExecuteMethod = CommandLogin }); CommandBindings.Add(new CommandBinding(FindCommand("Login"), button1)); edtkullanici.Text = StrHelper.GetLastWordAfter("\\", System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString()); this.ActiveControl = edtkullanici; ComboDoldur(); edtkullanici.Text = Settings.Default.Kullanici; edtsifre.Text = Settings.Default.Sifre; cmbsqls.SelectedValue = Settings.Default.anamakina; chbRemember.Checked = Settings.Default.BeniHatirla; lblVersion.Text = Application.ProductVersion; btnattach.Click += new EventHandler(btnattach_Click); btncreate.Click += new EventHandler(btncreate_Click); lblyeni.Click += new EventHandler(lblyeni_Click); edtexp.LinkClicked += new LinkLabelLinkClickedEventHandler(edtexp_LinkClicked); edtexp64.LinkClicked += new LinkLabelLinkClickedEventHandler(edtexp64_LinkClicked); edtman.LinkClicked += new LinkLabelLinkClickedEventHandler(edtman_LinkClicked); //edtdata.LinkClicked += new LinkLabelLinkClickedEventHandler(edtdata_LinkClicked); if (!System.IO.Directory.Exists(Current.anaklasor)) { System.IO.Directory.CreateDirectory(Current.anaklasor); } if (!System.IO.Directory.Exists(Current.dataklasor)) { System.IO.Directory.CreateDirectory(Current.dataklasor); } if (!System.IO.Directory.Exists(Current.xmlklasor)) { System.IO.Directory.CreateDirectory(Current.xmlklasor); } if (!System.IO.Directory.Exists(Current.kodklasor)) { System.IO.Directory.CreateDirectory(Current.kodklasor); } if (!System.IO.Directory.Exists(Current.kodklasor)) { System.IO.Directory.CreateDirectory(Current.kodklasor); } if (!System.IO.Directory.Exists(Current.pdfklasor)) { System.IO.Directory.CreateDirectory(Current.pdfklasor); } if (Settings.Default.Connection.Contains("FailIfMissing")) { SharpBullet.OAL.Configuration.SetValue("DbType", "System.Data.Sqlite"); } else { SharpBullet.OAL.Configuration.SetValue("DbType", "System.Data.SqlClient"); } }