Esempio n. 1
0
 public MainViewModel()
 {
     saveCommand = new RelayCommand(Save);
     messageList = new MessagesList();
     messageList.Load();
     if (messageList.MessageCount > 0)
     {
         CurrentMessage = messageList.GetLastMessage();
     }
     else
     {
         CurrentMessage = new Message();
     }
 }