예제 #1
0
파일: Main.cs 프로젝트: sigallie/Falcon20
        private void btnLedgers_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            if (ClassDBUtils.IsAllowed(ClassGenLib.username, "VIEW LEDGERS") == false)
            {
                MessageBox.Show("Access denied! Insufficient rights to perform the function.", "Falcon", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }

            SelectReport srpt = new SelectReport(1);

            srpt.ShowDialog();
        }
예제 #2
0
        internal void ExecuteValidation()
        {
            IsWorking = true;
            PropertyChanged.Invoke(this, new PropertyChangedEventArgs(@"FilesCanChange"));
            SelectRequirement.ChangesHappened();
            SelectSubmission.ChangesHappened();
            SelectReport.ChangesHappened();

            ActivityStatus = "Loading requirement file";
            var fReader = new FacilityReader();

            RequirementFacility = fReader.LoadFacility(RequirementFileSource);

            ActivityStatus = "Loading submission file";
            LoadSubmissionFile(SubmissionFileSource);
        }
        internal void ExecuteValidation()
        {
            IsWorking = true;
            if (PropertyChanged != null)
            {
                PropertyChanged.Invoke(this, new PropertyChangedEventArgs(@"FilesCanChange"));
            }
            SelectRequirement.ChangesHappened();
            SelectModelSubmission.ChangesHappened();
            SelectReport.ChangesHappened();

            ActivityStatus = "Loading requirement file";
            var fReader = new FacilityReader();

            RequirementFacility = fReader.LoadFacility(RequirementFileSource);

            ActivityStatus = "Loading submission file";
            // once done loading the model file execute ValidateFacilities
            LoadModelFile(SubmissionFileSource, ValidateFacilities);
        }