Example #1
0
        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();
 }
Example #3
0
 public frmParcalar(SqlConnection baglanti, Personel personel)
 {
     this.baglanti = baglanti;
     this.personel = personel;
     InitializeComponent();
 }
Example #4
0
 public frmSistemSabitleri(SqlConnection baglanti, Personel personel)
 {
     this.baglanti = baglanti;
     this.personel = personel;
     InitializeComponent();
 }
Example #5
0
 public frmMasterForm(SqlConnection baglanti, Personel personel)
 {
     this.baglanti = baglanti;
     this.personel = personel;
     InitializeComponent();
 }