Ejemplo n.º 1
0
        public frmHomeConfiguration(int phomeid, string phomename, int pstateid, string pusercode)
        {
            homeid            = phomeid;
            usercode          = pusercode;
            loginstateid      = pstateid;
            homename          = phomename;
            backgroundWorker1 = new BackgroundWorker();

            cr = new CommonResource(loginstateid, 0);
            InitializeComponent();
            InitializeBackgroundWorker();
            //Binding.AddSourceUpdatedHandler(dataGrid2,OnDataGridSourceUpdated);
            this.DataContext = cr;
            label1.Content   = label1.Content + " " + phomename;
            cr.LoadHomeConfigurationAreas(loginstateid);
            cr.LoadHomeConfigurationGroups(loginstateid);
            this.Title = this.Title + " - " + CommonVariables.WindowTitleInfo;
        }