/// <summary> /// Initializes a new instance of the <see cref="PromptViewModel" /> class. /// </summary> /// <param name="view">The view.</param> /// <param name="container">The container.</param> public PromptViewModel(IPromptView view, IContainer container) : base(view, container) { this.PromptEntity = new PromptModel(); this.SendPromptResponse = new DelegateCommand <object>(this.OnSendPromptResponse); this.PWPMainViewModel = container.GetInstance <IPWPMainViewModel>(); }
public DuplicateFileController(IPromptView view, BrowserController browserController) : base(view, browserController) { Path selected = browserController.SelectedPath; StringBuilder proposal = new StringBuilder(); proposal.Append(System.IO.Path.GetFileNameWithoutExtension(selected.getName())); string shortDate = UserDefaultsDateFormatter.GetShortFormat(DateTime.Now).Replace('/', '.').Replace(':', '.'); proposal.Append(" (").Append(shortDate).Append(")"); if (!string.IsNullOrEmpty(selected.getExtension())) { proposal.Append(".").Append(selected.getExtension()); } PrefilledText = proposal.ToString(); }
public FolderController(IPromptView view, BrowserController browserController) : base(view, browserController) { }
public GotoController(IPromptView view, BrowserController browserController) : base(view, browserController) { PrefilledText = browserController.Workdir.getAbsolute(); }
public CreateFileController(IPromptView view, BrowserController browserController) : base(view, browserController) { }