public void NewItem(string name, string location, ContentItemTemplate template) { var action = new NewAction(this, name, location, template); action.Do(); _actionStack.Add(action); }
public void NewItem() { var path = GetFullPath(GetCurrentPath()); string name; ContentItemTemplate template; if (!View.ChooseItemTemplate(path, out template, out name)) { return; } var action = new NewAction(this, name, path, template); if (action.Do()) { _actionStack.Add(action); } }