public MainWindow()
 {
     InitializeComponent();
     DataContext = this;
     StatusBlock = new StatusBlock(StatusBar);
     StatusBlock.Alert("Welcome to the most awesome messages application!");
 }
 public AddContactWindow(MessageService messageService)
 {
     MessageService = messageService;
     DataContext    = this;
     InitializeComponent();
     StatusBlock = new StatusBlock(StatusBar);
 }
 public AddressBookWindow(MessageService messageService)
 {
     MessageService = messageService;
     SearchResults  = new ObservableCollectionView <Contact>(MessageService.Contacts);
     InitializeComponent();
     DataContext = this;
     StatusBlock = new StatusBlock(StatusBar);
     StatusBlock.Alert("Search and select contacts from the list");
 }
 public MessageWindow(MessageService messageService)
 {
     MessageService            = messageService;
     MessageService.NewMessage = new Message();
     DataContext = this;
     InitializeComponent();
     StatusBlock = new StatusBlock(StatusBar);
     StatusBlock.Alert("Add recipients and send your message!");
 }