Esempio n. 1
0
        public Main()
        {
            InitializeComponent();
            _itemBl   = new ItemBL();
            UserCount = _itemBl.GetItemCount();
            UpdateUserCountLabel(UserCount);

            var settings = new CefSettings();

            Cef.Initialize(settings);

            jsObj                   = new JavascriptCallbackObject();
            jsObj.UserCount         = UserCount;
            jsObj.UserCountCallback = UpdateUserCountLabel;

            // Handlers
            Load    += MainForm_Load;
            Closing += MainForm_Closing;
            this.btnAddUser.Click   += addUser_Click;
            this.btnListUsers.Click += listUser_Click;
        }