示例#1
0
        public void ImportData()
        {
            var options = new ImportDataOptions();

            if (SelectedCollection != null)
            {
                options.DatabaseReference   = SelectedCollection.Database;
                options.CollectionReference = SelectedCollection;
            }
            else if (SelectedDatabase != null)
            {
                options.DatabaseReference = SelectedDatabase;
            }

            _applicationInteraction.ShowImportWizard(options);
        }
        public bool ShowImportWizard(ImportDataOptions options = null)
        {
            var vm = IoC.Get <ImportDataWizardViewModel>();

            vm.Init(options);

            var dialogOptions = new DialogOptions
            {
                Width         = 800,
                MinWidth      = 600,
                Height        = 700,
                MinHeight     = 500,
                SizeToContent = SizeToContent.Manual,
                ResizeMode    = ResizeMode.CanResizeWithGrip
            }
            .SizeToFit();

            return(_windowManager.ShowDialog(vm, null, dialogOptions.Value) == true);
        }
示例#3
0
 public void Init(ImportDataOptions modelParams)
 {
 }