예제 #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();
        }
예제 #3
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();
 }
 public CsvImportColumnsStepViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
     _parent        = (CsvImportViewModel)parentMode;
     NoTypeBehavior = CsvImportNoTypeBehavior.Auto;
 }
 public ImportProgressViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
     _srsDao = new SrsEntryDao();
 }
예제 #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;
 }
예제 #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();
 }
예제 #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;
 }
예제 #13
0
 public ImportProgressViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
     _srsDao = new SrsEntryDao();
 }
        public ImportOverviewViewModel(ImportModeViewModel parentMode)
            : base(parentMode)
        {

        }
예제 #15
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 CsvImportColumnsStepViewModel(ImportModeViewModel parentMode)
     : base(parentMode)
 {
     _parent = (CsvImportViewModel)parentMode;
     NoTypeBehavior = CsvImportNoTypeBehavior.Auto;
 }
 public ImportStepViewModel(ImportModeViewModel parentMode)
 {
     ParentMode = parentMode;
 }
예제 #18
0
 public WkImportSettingsViewModel(ImportModeViewModel parent)
     : base(parent)
 {
     _parent = (WkImportViewModel)parent;
 }