Exemple #1
0
 public WkImportRequestViewModel(ImportModeViewModel parent)
     : base(parent)
 {
     _parent        = (WkImportViewModel)parent;
     SkipOnPrevious = true;
     IsWorking      = true;
 }
        public CsvImportFileStepViewModel(ImportModeViewModel parentMode)
            : base(parentMode)
        {
            CsvSeparator = ";";
            CsvQuote     = "\"";

            BrowseCommand          = new RelayCommand(OnBrowse);
            EncodingChangedCommand = new RelayCommand(OnEncodingChanged);

            Encodings = new string[]
            {
                "(Other...)",
                "UTF-8",
                "Shift-JIS"
            };
            SelectedEncodingIndex = 1;
            OnEncodingChanged();
        }
 /// <summary>
 /// Event callback. Called when the current import mode is canceled.
 /// Returns the control to the home import view model.
 /// </summary>
 private void OnCurrentModeCanceled(object sender, EventArgs e)
 {
     _currentMode = null;
     UpdateStep();
 }
 public CsvImportColumnsStepViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
     _parent        = (CsvImportViewModel)parentMode;
     NoTypeBehavior = CsvImportNoTypeBehavior.Auto;
 }
 public ImportProgressViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
     _srsDao = new SrsEntryDao();
 }
Exemple #6
0
 public ImportOverviewViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
 }
 public ImportStepViewModel(ImportModeViewModel parentMode)
 {
     ParentMode = parentMode;
 }
        public CsvImportFileStepViewModel(ImportModeViewModel parentMode)
            : base(parentMode)
        {
            CsvSeparator = ";";
            CsvQuote = "\"";

            BrowseCommand = new RelayCommand(OnBrowse);
            EncodingChangedCommand = new RelayCommand(OnEncodingChanged);

            Encodings = new string[]
            {
                "(Other...)",
                "UTF-8",
                "Shift-JIS"
            };
            SelectedEncodingIndex = 1;
            OnEncodingChanged();
        }
 public WkImportSettingsViewModel(ImportModeViewModel parent)
     : base(parent)
 {
     _parent = (WkImportViewModel)parent;
 }
Exemple #10
0
 /// <summary>
 /// Event callback. Called when the current import mode is canceled.
 /// Returns the control to the home import view model.
 /// </summary>
 private void OnCurrentModeCanceled(object sender, EventArgs e)
 {
     _currentMode = null;
     UpdateStep();
 }
Exemple #11
0
 /// <summary>
 /// Command callback. Called when selecting an import mode.
 /// </summary>
 /// <param name="vm">ViewModel for the selected import mode.</param>
 private void OnSelectImport(ImportModeViewModel vm)
 {
     _currentMode = vm;
     UpdateStep();
 }
 public WkImportRequestViewModel(ImportModeViewModel parent)
     : base(parent)
 {
     _parent = (WkImportViewModel)parent;
     SkipOnPrevious = true;
     IsWorking = true;
 }
Exemple #13
0
 public ImportProgressViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
     _srsDao = new SrsEntryDao();
 }
        public ImportOverviewViewModel(ImportModeViewModel parentMode)
            : base(parentMode)
        {

        }
 /// <summary>
 /// Command callback. Called when selecting an import mode.
 /// </summary>
 /// <param name="vm">ViewModel for the selected import mode.</param>
 private void OnSelectImport(ImportModeViewModel vm)
 {
     _currentMode = vm;
     UpdateStep();
 }
 public CsvImportColumnsStepViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
     _parent = (CsvImportViewModel)parentMode;
     NoTypeBehavior = CsvImportNoTypeBehavior.Auto;
 }
 public ImportStepViewModel(ImportModeViewModel parentMode)
 {
     ParentMode = parentMode;
 }
Exemple #18
0
 public WkImportSettingsViewModel(ImportModeViewModel parent)
     : base(parent)
 {
     _parent = (WkImportViewModel)parent;
 }