コード例 #1
0
 private void frmSube_Load(object sender, EventArgs e)
 {
     dataGridView1.AutoGenerateColumns = false;
     managerFactory = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     managerSube    = managerFactory.GetSubeManager();
     LoadAllSube();
 }
コード例 #2
0
 public frmSubeDegistir()
 {
     InitializeComponent();
     mngFac  = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngSube = mngFac.GetSubeManager();
     LoadSube();
     cmbSubeKodu.Focus();
 }
コード例 #3
0
        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();
        }