コード例 #1
0
        public void NewItem(string name, string location, ContentItemTemplate template)
        {
            var action = new NewAction(this, name, location, template);

            action.Do();
            _actionStack.Add(action);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public void NewItem(string name, string location, ContentItemTemplate template)
 {
     var action = new NewAction(this, name, location, template);
     action.Do();
     _actionStack.Add(action);
 }