private void frmSube_Load(object sender, EventArgs e) { dataGridView1.AutoGenerateColumns = false; managerFactory = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); managerSube = managerFactory.GetSubeManager(); LoadAllSube(); }
public frmSubeDegistir() { InitializeComponent(); mngFac = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); mngSube = mngFac.GetSubeManager(); LoadSube(); cmbSubeKodu.Focus(); }
public frmLogin() { frmLogin.CheckForIllegalCrossThreadCalls = false; CultureInfo ci = new CultureInfo("tr-TR"); Thread.CurrentThread.CurrentCulture = ci; Thread.CurrentThread.CurrentUICulture = ci; ReadRegistry(); mngFac = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); mngSube = mngFac.GetSubeManager(); mngUSer = mngFac.GetKullaniciManager(); InitializeComponent(); this.Visible = true; this.Show(); //ThreadStart ths = new ThreadStart(LoadAsynData); //th = new Thread(ths); //th.Start(); backgroundWorker1.RunWorkerAsync(); LoadAllSube(); }