private void frmUrunListesi_Load(object sender, EventArgs e) { BaglantiAres = SqlConnections.GetAresSqlConnection(); BaglantiAresUT = SqlConnections.GetAresUTSqlConnection(); if (BaglantiAres.State == ConnectionState.Closed) { BaglantiAres.Open(); } if (BaglantiAresUT.State == ConnectionState.Closed) { BaglantiAresUT.Open(); } GridDoldur(); }
private void frmAnaFormParametre_Load(object sender, EventArgs e) { XmlOku(); BaglantiAres = SqlConnections.GetAresSqlConnection(); BaglantiAresUT = SqlConnections.GetAresUTSqlConnection(); if (BaglantiAres.State == ConnectionState.Closed) { BaglantiAres.Open(); } if (BaglantiAresUT.State == ConnectionState.Closed) { BaglantiAresUT.Open(); } FiyatTanimlariniGetir(); }
private void Form1_Load(object sender, EventArgs e) { try { BaglantiAres = SqlConnections.GetAresSqlConnection(); BaglantiAresUT = SqlConnections.GetAresUTSqlConnection(); if (BaglantiAres.State == ConnectionState.Closed) { BaglantiAres.Open(); } if (BaglantiAresUT.State == ConnectionState.Closed) { BaglantiAresUT.Open(); } StokListe = new csStok(SqlConnections.GetAresUTSqlConnection()); txtArama_TextChanged(null, null); gvResimYukle(); txtArama.DataBindings.Add("EditValue", StokListe, "Arama", true, DataSourceUpdateMode.OnPropertyChanged); AlanlariYenidenBinle(); timer1.Start(); } catch (Exception hata) { MessageBox.Show(hata.Message); } }