public frmKurStp2(frmLogin frmLogin, frmKurStp1 frmKurStep1, string database) { InitializeComponent(); this._frmLogin = frmLogin; frmLogin.CheckForIllegalCrossThreadCalls = false; _database = database; _frmKurStep1 = frmKurStep1; }
void ReadRegistry() { try { Settings set = Engine.FindSettings(); string kurulumTamamlanmadi = "0"; if (set.Kurulum == kurulumTamamlanmadi) { frmBaslangic frm = new frmBaslangic(); frm.Owner = this; this.Visible = false; frm.ShowDialog(); set = Engine.FindSettings(); if (set.DataBase == "SqlLite") { string constr = Engine.GetConString(); if (string.IsNullOrEmpty(constr.Trim()) || set.Kurulum == kurulumTamamlanmadi) { string str = Engine.GetSqlLiteConString(); set.ConnectionString = str; set.Kurulum = "1"; Engine.SaveSettings(set); } } else { string server = Engine.GetConString(); if (string.IsNullOrEmpty(server)) { frmKurStp1 frm2 = new frmKurStp1(this); this.Hide(); frm2.ShowDialog(); } } } } catch (Exception exc) { LogWrite.Write(exc); } }