コード例 #1
0
ファイル: ActionException.cs プロジェクト: maciek4/FileSync
 private void SetInitialValues(string message, ActionType actionType, MemeType memeType)
 {
     if (memeType.Equals(MemeType.FuckYea))
     {
         this.title = actionType.ToString() + " action was successful.";
     }
     else
     {
         this.title = actionType.ToString() + " action caused an error.";
     }
     this.type  = actionType;
     this.image = memeType;
 }
コード例 #2
0
        private void SetInitialValues(string message, ActionType actionType, 
				MemeType? memeType = null)
        {
            if (memeType.Equals(MemeType.FuckYea)) {
                this.title = actionType.ToString() + " action was successful.";
            } else {
                this.title = actionType.ToString() + " action caused an error.";
            }
            this.type = actionType;
            this.image = memeType;
        }