Interaction logic for ReportsView.xaml
Наследование: System.Windows.Controls.UserControl
   public UiService (ProfileStatusesViewModel viewModel)
   {
     if (viewModel == null)
       throw new ArgumentNullException (nameof (viewModel));
 
     var view = new ProfileStatusesView();
     view.DataContext = viewModel;
     _profileStatusesWindow = new GenericElementHostWindow();
     _profileStatusesWindow.Text = "Synchronization Status";
     _profileStatusesWindow.Icon = Resources.ApplicationIcon;
     _profileStatusesWindow.ShowIcon = true;
     _profileStatusesWindow.BackColor = SystemColors.Window;
     _profileStatusesWindow.Child = view;
     _profileStatusesWindow.Size = new Size (400, 300);
     _profileStatusesWindow.FormClosing += (sender, e) =>
     {
       e.Cancel = true;
       _profileStatusesWindow.Visible = false;
     };
   }