static void Main() { SqlConnection baglanti = new SqlConnection("Server=.;Database=araba;User Id=araba;Password=arabaparola;"); baglanti.Open(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); frmLogin login = new frmLogin(baglanti); Application.Run(login); Personel personel = login.getPersonel(); if (personel != null) { frmMasterForm master = new frmMasterForm(baglanti, personel); Application.Run(master); } }
public frmYedekleGeriYukle(SqlConnection baglanti, Personel personel) { this.baglanti = baglanti; this.personel = personel; InitializeComponent(); }
public frmParcalar(SqlConnection baglanti, Personel personel) { this.baglanti = baglanti; this.personel = personel; InitializeComponent(); }
public frmSistemSabitleri(SqlConnection baglanti, Personel personel) { this.baglanti = baglanti; this.personel = personel; InitializeComponent(); }
public frmMasterForm(SqlConnection baglanti, Personel personel) { this.baglanti = baglanti; this.personel = personel; InitializeComponent(); }