@@ -66,6 +66,8 @@ public bool CanSend
6666            get  {  return  ( this . _CanSend  ==  true  &&  this . Sender  !=  null  &&  this . Recipients  !=  null  &&  ! string . IsNullOrEmpty ( this . Body )  &&  ! string . IsNullOrEmpty ( this . Subject ) ) ;  } 
6767        } 
6868
69+         public  int  Index  {  get ;  internal  set ;  } 
70+ 
6971        private  Mata  Mata  {  get ;  set ;  } 
7072        #endregion
7173
@@ -143,7 +145,7 @@ public MagisterMessage CreateForwardMessage()
143145                IDKey  =  this . IDKey , 
144146                IDOrginalReceiver  =  null , 
145147                IDOriginal  =  null , 
146-                 Body  =  "<b>Van:</b> "  +  this . Sender . Description  +  "<br><b>Verzonden:</b> "  +  this . SentDate . DayOfWeekDutch ( )   +   " "   +   this . SentDate . ToString ( )  +  "<br><b>Aan:</b> "  +  String . Join ( ", " ,  this . Recipients . Select ( x =>  x . Name ) )  +  "<br><b>Onderwerp:</b> "  +  this . Subject  +  "<br><br>\" "  +  this . Body  +  "\" <br><br>" , 
148+                 Body  =  "<b>Van:</b> "  +  this . Sender . Description  +  "<br><b>Verzonden:</b> "  +  this . SentDate . ToString ( true )  +  "<br><b>Aan:</b> "  +  String . Join ( ", " ,  this . Recipients . Select ( x =>  x . Name ) )  +  "<br><b>Onderwerp:</b> "  +  this . Subject  +  "<br><br>\" "  +  this . Body  +  "\" <br><br>" , 
147149                Deleted  =  false , 
148150                _IsRead  =  true , 
149151                Subject  =  tmpSubject , 
@@ -175,7 +177,7 @@ public MagisterMessage CreateForwardMessage(string ContentAdd)
175177                IDKey  =  this . IDKey , 
176178                IDOrginalReceiver  =  null , 
177179                IDOriginal  =  null , 
178-                 Body  =  ContentAdd  +  "<br><br>---------------<br><b>Van:</b> "  +  this . Sender . Description  +  "<br><b>Verzonden:</b> "  +  this . SentDate . DayOfWeekDutch ( )   +   " "   +   this . SentDate . ToString ( )  +  "<br><b>Aan:</b> "  +  String . Join ( ", " ,  this . Recipients . Select ( x =>  x . Name ) )  +  "<br><b>Onderwerp:</b> "  +  this . Subject  +  "<br><br>\" "  +  this . Body  +  "\" <br><br>" , 
180+                 Body  =  ContentAdd  +  "<br><br>---------------<br><b>Van:</b> "  +  this . Sender . Description  +  "<br><b>Verzonden:</b> "  +  this . SentDate . ToString ( true )  +  "<br><b>Aan:</b> "  +  String . Join ( ", " ,  this . Recipients . Select ( x =>  x . Name ) )  +  "<br><b>Onderwerp:</b> "  +  this . Subject  +  "<br><br>\" "  +  this . Body  +  "\" <br><br>" , 
179181                Deleted  =  false , 
180182                _IsRead  =  true , 
181183                Subject  =  tmpSubject , 
@@ -197,7 +199,7 @@ public MagisterMessage CreateReplyToAllMessage(string ContentAdd)
197199            var  tmpSubject  =  ( this . Subject [ 0 ]  !=  'R'  ||  this . Subject [ 1 ]  !=  'E'  ||  this . Subject [ 2 ]  !=  ':'  ||  this . Subject [ 3 ]  !=  ' ' )  ?  "RE: "  +  this . Subject  :  this . Subject ; 
198200
199201            var  tmpCC  =  this . Recipients . ToList ( ) . Where ( p =>  p . ID  !=  this . Mata . Person . ID ) . ToList ( ) ;  //Should get the current receivers and pull itself out. :) 
200-             if  ( this . CC  !=  null )  tmpCC . AddRange ( this . CC . ToList ( ) . Where ( p =>  p . ID  !=  this . Mata . Person . ID ) . ToList ( ) ) ; 
202+             if  ( this . CC  !=  null )  tmpCC . AddRange ( this . CC . ToList ( ) . Where ( p =>  p . ID  !=  this . Mata . Person . ID ) ) ; 
201203            tmpCC . Sort ( ) ; 
202204
203205            return  new  MagisterMessage ( ) 
@@ -212,7 +214,7 @@ public MagisterMessage CreateReplyToAllMessage(string ContentAdd)
212214                IDKey  =  this . IDKey , 
213215                IDOrginalReceiver  =  null , 
214216                IDOriginal  =  null , 
215-                 Body  =  ContentAdd  +  "<br><br>---------------<br><b>Van:</b> "  +  this . Sender . Description  +  "<br><b>Verzonden:</b> "  +  this . SentDate . DayOfWeekDutch ( )   +   " "   +   this . SentDate . ToString ( )  +  "<br><b>Aan:</b> "  +  String . Join ( ", " ,  this . Recipients . Select ( x =>  x . Name ) )  +  "<br><b>Onderwerp:</b> "  +  this . Subject  +  "<br><br>\" "  +  this . Body  +  "\" <br><br>" , 
217+                 Body  =  ContentAdd  +  "<br><br>---------------<br><b>Van:</b> "  +  this . Sender . Description  +  "<br><b>Verzonden:</b> "  +  this . SentDate . ToString ( true )  +  "<br><b>Aan:</b> "  +  String . Join ( ", " ,  this . Recipients . Select ( x =>  x . Name ) )  +  "<br><b>Onderwerp:</b> "  +  this . Subject  +  "<br><br>\" "  +  this . Body  +  "\" <br><br>" , 
216218                Deleted  =  false , 
217219                _IsRead  =  true , 
218220                Subject  =  tmpSubject , 
@@ -245,7 +247,7 @@ public MagisterMessage CreateReplyMessage(string ContentAdd)
245247                IDKey  =  this . IDKey , 
246248                IDOrginalReceiver  =  null , 
247249                IDOriginal  =  null , 
248-                 Body  =  ContentAdd  +  "<br><br>---------------<br><b>Van:</b> "  +  this . Sender . Description  +  "<br><b>Verzonden:</b> "  +  this . SentDate . DayOfWeekDutch ( )   +   " "   +   this . SentDate . ToString ( )  +  "<br><b>Aan:</b> "  +  String . Join ( ", " ,  this . Recipients . Select ( x =>  x . Name ) )  +  "<br><b>Onderwerp:</b> "  +  this . Subject  +  "<br><br>\" "  +  this . Body  +  "\" <br><br>" , 
250+                 Body  =  ContentAdd  +  "<br><br>---------------<br><b>Van:</b> "  +  this . Sender . Description  +  "<br><b>Verzonden:</b> "  +  this . SentDate . ToString ( true )  +  "<br><b>Aan:</b> "  +  String . Join ( ", " ,  this . Recipients . Select ( x =>  x . Name ) )  +  "<br><b>Onderwerp:</b> "  +  this . Subject  +  "<br><br>\" "  +  this . Body  +  "\" <br><br>" , 
249251                Deleted  =  false , 
250252                _IsRead  =  true , 
251253                Subject  =  tmpSubject , 
@@ -265,7 +267,7 @@ public void Delete()
265267            if  ( this . Deleted )  return ; 
266268
267269            this . Deleted  =  true ; 
268-             _Session . HttpClient . Delete ( this . URL ( ) ,  this . Mata . SessionID ) ; 
270+             _Session . HttpClient . Delete ( this . URL ( ) ,  "SESSION_ID="   +   this . Mata . SessionID   +   "&fileDownload=true" ) ; 
269271        } 
270272
271273        /// <summary> 
@@ -373,7 +375,7 @@ internal partial class MagisterStyleMessage
373375        public  int  IdDeelNameSoort  {  get ;  set ;  } 
374376        #endregion
375377
376-         public  MagisterMessage  ToMagisterMessage ( ) 
378+         public  MagisterMessage  ToMagisterMessage ( int   index ) 
377379        { 
378380            var  tmpReceivers  =  this . Ontvangers . ConvertAll ( p =>  p . ToPerson ( true ) ) ; 
379381            tmpReceivers . Sort ( ) ; 
@@ -401,7 +403,8 @@ public MagisterMessage ToMagisterMessage()
401403                Deleted  =  this . IsDefinitiefVerwijderd , 
402404                IDKey  =  this . IdKey , 
403405                SenderGroupID  =  this . IdDeelNameSoort , 
404-                 _CanSend  =  false 
406+                 _CanSend  =  false , 
407+                 Index  =  index 
405408            } ; 
406409        } 
407410
0 commit comments