private void ButtonLogin_OnClick(object sender, RoutedEventArgs e)
        {
            this.Hide();

            var password = this.Password.Password;
            var hostname = this.Host.Text;
            var login = this.Login.Text;

            var model = new ProjectDuplicationTrackerModel();
            model.Login();
            var win = new Window();
            var view = new DuplicationUserControl(model);
            win.Content = view;
            win.SizeToContent = SizeToContent.WidthAndHeight;
            win.ShowDialog();
            this.Close();
        }
 /// <summary>
 /// The init model.
 /// </summary>
 /// <param name="configuration">
 /// The configuration.
 /// </param>
 /// <param name="project">
 /// The project.
 /// </param>
 /// <param name="vshelper">
 /// The vshelper.
 /// </param>
 private void InitModel(ISonarConfiguration configuration, Resource project, IVsEnvironmentHelper vshelper)
 {
     if (this.model == null)
     {
         this.model = new ProjectDuplicationTrackerModel(configuration, vshelper);
         this.model.Login();
         this.model.SelectMainResource(project);
     }
 }
 public DuplicationUserControl(ProjectDuplicationTrackerModel model)
 {
     InitializeComponent();
     this.DataContext = model;
 }