private void SelectType(SelectTypeViewModel m, SelectedTypeArgs e)
        {
            if (e.InstanceType == InstanceType.Remote)
            {

            }
            else
            {
                CurrentPage = new NewLocalPage();
                var viewmodel = (NewLocalViewModel)_currentPage.DataContext;
                viewmodel.CloseHandler += Close;
                viewmodel.CreatedHandler += CreateNewInstance;
            }
        }
 public SelectTypePage()
 {
     Resources.MergedDictionaries.Add(SharedDictionaryManager.SharedDictionary);
     InitializeComponent();
     DataContext = new SelectTypeViewModel();
 }