Beispiel #1
0
        private SortingEntities1 _ctx;        // konekcija s bazom

        public Form1(bool guest, User korisnik, SortingEntities1 ctx)
        {
            InitializeComponent();
            elements       = new ElementList(this, Width / 2);
            ResizeRedraw   = true;
            DoubleBuffered = true;
            this.guest     = guest;
            this.korisnik  = korisnik;
            _ctx           = ctx;
            lblUser.Text   = guest ? "Guest" : korisnik.username;
        }
Beispiel #2
0
 public SortTest(SortingEntities1 ctx, User korisnik)
 {
     InitializeComponent();
     this._ctx     = ctx;
     this.korisnik = korisnik;
 }
Beispiel #3
0
 public AdminPage(SortingEntities1 ctx)
 {
     InitializeComponent();
     _ctx = ctx;
     dgvUsers.DataSource = _ctx.Users.ToList();
 }
Beispiel #4
0
 SortingEntities1 _ctx; // konekcija s bazom
 public Login()
 {
     InitializeComponent();
     _ctx = new SortingEntities1();
 }