Example #1
0
		/// <summary>
		/// Konstruktor. 
		/// </summary>
		public Context(SzpifDatabase dataBase ,FormManager formManager)
        {
			this.Database = dataBase;
			this.FormManager = formManager;
            this.contentManager = new ContentManager();
			this.ViewToGridManager = new BindManager(dataBase);
            this.interfaceManager = new InterfaceBuilder();
            this.userLogin = null;
            this.userPassword = null;
            this.roles = null;
        }
Example #2
0
        public UserSettingsPage(string text) : base(text)
        {
            contManager = Program.Context.ContentManager;
            bindManager = Program.Context.ViewToGridManager;

            InitializeComponent();

            // initializing dataGridView
            employeesForUser = new DataGridView();
            employeesForUser.Name = "EmployeesForUser";
            employeesForUser.Visible = false;
            this.Controls.Add(employeesForUser);
            
            // binding
            view = bindManager.bindToView(employeesForUser);
            valueBoxes = contManager.generateContent(this, employeesForUser, view);
        }