コード例 #1
0
ファイル: Task.cs プロジェクト: accept8605/RoMoRDuP
        public bool Compare(cAttributes CompareTo)
        {
            bool bRet = false;

            DateTime dateTime1 = CreatedDateTime;
            DateTime dateTime2 = CompareTo.CreatedDateTime;

            bool bDateTimeOK = false;

            if ((dateTime1.Year == dateTime2.Year) && (dateTime1.Month == dateTime2.Month) && (dateTime1.Day == dateTime2.Day) &&
                (dateTime1.Hour == dateTime2.Hour) && (dateTime1.Minute == dateTime2.Minute)
                )
            {
                bDateTimeOK = true;
            }

            if ((ReadOnly == CompareTo.ReadOnly) && (Hidden == CompareTo.Hidden) && (bDateTimeOK))
            {
                bRet = true;
            }

            return(bRet);
        }
コード例 #2
0
ファイル: Task.cs プロジェクト: accept8605/RoMoRDuP
        // The Observable Collection only means that added and removed items from it are noticed
        public TaskNodeViewModel(TaskNodeViewModel parent, int ID, TaskViewType taskViewType, string BasePath, cAttributes OrgFileAttributes)
        {
            //Show = true;
            this.taskViewType = taskViewType;

            this.basePath = BasePath;

            this.OrgFileAttributes = OrgFileAttributes;

            this.SetFileAttributes = null;

            ParentOfThis = parent;
            IdOfThis     = ID;

            DuplicatesSourceSourceOrTT = new List <string>();
            DuplicatesSourceTarget     = new List <string>();

            DuplicatesSourceSourceOrTTNodes = new List <TaskNodeViewModel>();
            DuplicatesSourceTargetNodes     = new System.Collections.Generic.List <TaskNodeViewModel>();

            Path_1_Original       = "";
            Path_2_Copy           = "";
            Path_3_Move           = "";
            Path_4_Rename         = "";
            Path_5_Delete         = "";
            Path_CreateShortcutAt = "";
            Path_CreateShortcutTo = "";

            IsExpanded = false;

            bUpdatedFile      = false;
            bManuallyModified = false;

            bActivated = true;

            childrensNames = new Dictionary <string, List <TaskNodeViewModel> >();
        }