public ObjectEntryDialog(object objectsToEnter, DialogViewModel parentDialog, IApplicationController applicationController, IRecordService lookupService, IDictionary <string, IEnumerable <string> > optionsetLimitedValues, Action onSave, Action onCancel) : base(parentDialog, applicationController, lookupService, optionsetLimitedValues, onSave, onCancel: onCancel) { _objectToEnter = objectsToEnter; }
public ObjectEntryDialog(object objectsToEnter, DialogViewModel parentDialog, IApplicationController applicationController, IRecordService lookupService, IDictionary <string, IEnumerable <string> > optionsetLimitedValues) : this(objectsToEnter, parentDialog, applicationController, lookupService, optionsetLimitedValues, null, null) { _objectToEnter = objectsToEnter; }
protected DialogViewModel(DialogViewModel parentDialog) : base(parentDialog.ApplicationController) { LoadingViewModel = parentDialog.LoadingViewModel; ParentDialog = parentDialog; Controller = parentDialog.Controller; OnCancel = Controller.Close; }
public virtual void ShowCompletionScreen(DialogViewModel dialog) { var completionScreenViewModel = new CompletionScreenViewModel(dialog.OnCancel ?? Close, dialog.CompletionMessage, dialog.CompletionOptions, dialog.CompletionItem, ApplicationController); LoadToUi(completionScreenViewModel); }
public ObjectEntryDialog(object objectsToEnter, DialogViewModel parentDialog, IApplicationController applicationController, IRecordService lookupService, IDictionary <string, IEnumerable <string> > optionsetLimitedValues, Action onSave, Action onCancel, string saveButtonLabel = null, string cancelButtonLabel = null, string initialMessage = null) : base(parentDialog, applicationController, lookupService, optionsetLimitedValues, onSave, onCancel: onCancel, saveButtonLabel: saveButtonLabel, cancelButtonLabel: cancelButtonLabel) { InitialMessage = initialMessage; _objectToEnter = objectsToEnter; }
public virtual void ShowCompletionScreen(DialogViewModel dialog) { var completionScreenViewModel = new CompletionScreenViewModel(dialog.OnCancel ?? Close, dialog.CompletionItem, ApplicationController); if (dialog.FatalException != null) { completionScreenViewModel.CompletionHeadingText = $"Fatal error:\n{dialog.FatalException.DisplayString()}"; } LoadToUi(completionScreenViewModel); }
protected ObjectEntryDialogBase(DialogViewModel parentDialog, IApplicationController applicationController, IRecordService lookupService, IDictionary <string, IEnumerable <string> > optionsetLimitedValues, Action saveMethod, IDictionary <string, Type> objectTypeMaps = null, IDictionary <string, IEnumerable <string> > onlyValidate = null, Action onCancel = null) : base(parentDialog) { ApplicationController = applicationController; LookupService = lookupService; OptionsetLimitedValues = optionsetLimitedValues; ObjectTypeMaps = objectTypeMaps; OnlyValidate = onlyValidate; SaveMethod = saveMethod; if (onCancel != null) { OnCancel = onCancel; } }
/// <summary> /// Implementation Of DialogViewModel For Entering Data Into A CLR Object /// </summary> public ObjectEntryDialog(object objectsToEnter, DialogViewModel parentDialog, IApplicationController applicationController) : this(objectsToEnter, parentDialog, applicationController, null, null) { }
/// <summary> /// Implementation Of DialogViewModel For Entering Data Into A CLR Object /// </summary> public ObjectEntryDialog(object objectsToEnter, DialogViewModel parentDialog, IApplicationController applicationController, string saveButtonLabel = null) : this(objectsToEnter, parentDialog, applicationController, null, null) { }
public ObjectGetEntryDialog(Func <object> objectToEnter, DialogViewModel parentDialog, IApplicationController applicationController, IRecordService lookupService, IDictionary <string, Type> objectTypeMaps = null, string saveButtonLabel = null) : base(parentDialog, applicationController, lookupService, null, null, objectTypeMaps, saveButtonLabel: saveButtonLabel) { _objectToEnter = objectToEnter; }
public ObjectGetEntryDialog(Func <object> objectToEnter, DialogViewModel parentDialog, IApplicationController applicationController, Action saveMethod, IDictionary <string, Type> objectTypeMaps = null, IDictionary <string, IEnumerable <string> > onlyValidate = null) : base(parentDialog, applicationController, null, null, saveMethod, objectTypeMaps, onlyValidate) { _objectToEnter = objectToEnter; }