예제 #1
0
        void LoadMenuFile()
        {
            if (String.IsNullOrEmpty(_CurrentFullFileName))
            {
                return;
            }
            menuItemEditorSurvey1.imgList = this.imageList2;

            try
            {
                Menu = TreeListEngineDevExpress.LoadMenuFromFile(_CurrentFullFileName);
                this.menuItemSurveyBindingSource.DataSource = Menu.ItemList;
                PopulateImage();
            }
            catch (InvalidOperationException)
            {
                fwkMessageView_Error.Show("The file not contain correct Pelsoftat to represent any menu .-");
            }
            catch (Exception ex2)
            {
                fwkMessageView_Error.Show(ex2);
            }
            treeList1.ExpandAll();
            treeList1.RefreshDataSource();
            lblFileLoad.Text           = String.Concat("File ", _CurrentFullFileName);
            storage.StorageObject.File = _CurrentFullFileName;
            storage.Save();
        }
예제 #2
0
        private void frmMainRibon_Load(object sender, EventArgs e)
        {
            storage.Load();
            if (storage.StorageObject == null)
            {
                storage.StorageObject = new ClientUserSettings();
                storage.Save();
            }

            LoadAuthenticationForm();
        }
예제 #3
0
        private void frmMainRibon_Load(object sender, EventArgs e)
        {
            storage.Load();
            if (storage.StorageObject == null)
            {
                storage.StorageObject = new ClientUserSettings();
                storage.Save();
            }

            LoadAuthenticationForm();



            foreach (BarItem barItem in this.ribbonControl1.Items)
            {
                CheckRule(barItem);
            }
        }
예제 #4
0
        /// <summary>
        /// Cargamos el Formulario de Autenticación
        /// </summary>
        private void LoadAuthenticationForm()
        {
            FRM_AuthenticationForm_ASPNet wAuthForm = new FRM_AuthenticationForm_ASPNet("health_sec_ws");

            wAuthForm.Auth_Title_Image = null;
            wAuthForm.Auth_Title_Text  = "Autenticación";
            wAuthForm.InitCredentials(storage.StorageObject.User, storage.StorageObject.Password);

            if (wAuthForm.ShowDialog() == DialogResult.OK)
            {
                storage.StorageObject.User     = FormBase.Principal.Identity.Name;
                storage.StorageObject.Password = wAuthForm.Password;
                storage.Save();
            }
            else
            {
                this.Close();
            }
        }
예제 #5
0
        private void Main_Load(object sender, EventArgs e)
        {
            try
            {
                storage.Load();
                if (storage.StorageObject == null)
                {
                    storage.StorageObject = new UsersBE();
                    storage.Save();
                }
                ShowAuthenticationForm(storage.StorageObject.UserNameLogin, storage.StorageObject.Password);
                this.AddContronToPannel(PanelEnum.LeftPanel_1, "Epiron.Front.Gestion.Sample1.UserControl1,Epiron.Front.Gestion.Sample1", 10);

                this.AddContronToPannel(PanelEnum.FootherPanel, "Meucci.Front.Alerts.MarqueeUC,Meucci.Front.Alerts", null);
                this.AdjustCulture();
            }
            catch (Exception es)
            {
                MessageViewer.Show(es.Message);
            }
        }
예제 #6
0
        private void btnCheck_Click(object sender, EventArgs e)
        {
            try
            {
                HealthInstitutionBE wHealthInstitutionBE = ServiceCalls.ValidateActivationCode(txtCode.Text.Trim());

                _Storage.StorageObject.HealthInstitutionId = wHealthInstitutionBE.HealthInstitutionId;
                _Storage.StorageObject.ActivationKey       = txtCode.Text.Trim();
                _Storage.Save();

                txtRazonSocial.Text = wHealthInstitutionBE.RazonSocial;

                RegisterOk = true;
            }
            catch (Exception ex)
            {
                this.ExceptionViewer.Show(ex);
            }
        }