Example #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;
        }
Example #2
0
 public SortTest(SortingEntities1 ctx, User korisnik)
 {
     InitializeComponent();
     this._ctx     = ctx;
     this.korisnik = korisnik;
 }
Example #3
0
 public AdminPage(SortingEntities1 ctx)
 {
     InitializeComponent();
     _ctx = ctx;
     dgvUsers.DataSource = _ctx.Users.ToList();
 }
Example #4
0
 SortingEntities1 _ctx; // konekcija s bazom
 public Login()
 {
     InitializeComponent();
     _ctx = new SortingEntities1();
 }