예제 #1
0
 public BranchViewModel(Branch model, ViewModelManagementBase currentBase)
 {
     Model          = model;
     Id             = model.Id;
     ParentBranchId = model.ParentBranchId;
     Name           = model.Name;
     CurrentBase    = currentBase;
 }
예제 #2
0
        public ScheduledConfigViewModel(ScheduledConfig model, ViewModelManagementBase cBase)
        {
            CurrentBase = cBase;
            Name        = model.Name;
            Description = model.Description;

            UpdateNextExecution(model.Gtid.ExecutionDate);
        }
예제 #3
0
 public WebsiteViewModel(Website website, ViewModelManagementBase currentBase)
 {
     Id          = new Guid();
     CurrentBase = currentBase;
     Model       = website;
     Name        = website.Name;
     Adress      = website.Adress;
     LogoSource  = website.LogoSource;
 }
예제 #4
0
 public LeafViewModel(Leaf model, ViewModelManagementBase currentBase)
 {
     Model             = model;
     Id                = model.Id;
     BranchId          = model.BranchId;
     Name              = model.Name;
     Description       = model.Description;
     CurrentBase       = currentBase;
     Username          = model.Username;
     QuickbarOrder     = model.QuickbarOrder;
     InteractedCounter = model.InteractedCounter;
     Url               = model.Url;
 }
예제 #5
0
        public FortressViewModel(string fullPath, DateTime created, DateTime modified, ViewModelManagementBase currentBase, bool isDefaultLocated = true)
        {
            FullName = fullPath;
            var splitedString      = fullPath.Split("\\");
            var namePlusFileEnding = splitedString[splitedString.Length - 1];
            var splitedName        = namePlusFileEnding.Split(".");

            Name             = splitedName[0];
            Created          = created;
            Modified         = modified;
            Information      = $"{Modified.ToShortDateString()}: {Name}";
            IsDefaultLocated = isDefaultLocated;
            CurrentBase      = currentBase;
        }