Beispiel #1
0
 //CONSTRUCTORS
 // CREATING AN AGREEMENT
 public AddAgreementViewModel(AgreementsViewModel agreementViewModelInstanceThatWeCanGetBackTo)
 {
     IsViewingAgreement      = false;
     IsViewingAgreementNeg   = !IsViewingAgreement;
     IsTopInformationEditble = !IsViewingAgreement;
     _agreementViewModel     = agreementViewModelInstanceThatWeCanGetBackTo;
     initPredefinedRates();
 }
Beispiel #2
0
        // VIEWING AN AGREEMENT
        public AddAgreementViewModel(CollectiveAgreement col, AgreementsViewModel agreementViewModelInstanceThatWeCanGetBackTo2)
        {
            IsViewingAgreement      = true;
            IsViewingAgreementNeg   = !IsViewingAgreement;
            IsTopInformationEditble = !IsViewingAgreement;
            ColAgreement            = col;
            List <AddRateViewModel> rates = new List <AddRateViewModel>();

            ColAgreement.Rates.ForEach(x => rates.Add(new AddRateViewModel(x, true, false, false, false, false, false, false)));
            RateEntries                 = new ObservableCollection <AddRateViewModel>(rates);
            _agreementViewModel         = agreementViewModelInstanceThatWeCanGetBackTo2;
            RateListHeader              = "Liste over rater";
            PreDefinedRateGridMaxHeight = 0;
        }
Beispiel #3
0
        // Constructor
        public AgreementEntryViewModel(AgreementsViewModel agreementVM, CollectiveAgreement col, ShellViewModel Shell)
        {
            agreementMasterPage = agreementVM;
            colAgreementEntry   = col;
            Svm = Shell;

            if (colAgreementEntry.IsActive == true)
            {
                isBtnActive = false;
            }

            if (colAgreementEntry.IsArchived == true)
            {
                isBtnActive = false;
            }
        }