private static bool Studio_AddItem(int _group, int _category, int _no) { if (IsStudio) { return(true); } AddObjectItem.Add(_group, _category, _no); Singleton <UndoRedoManager> .Instance.Clear(); return(false); }
public static Item add_item(int group, int category, int no) { var objctrl = AddObjectItem.Add(group, category, no); //TODO make this right return(new Item(objctrl)); }
public void Do() { OCIItem ociItem = AddObjectItem.Load(new OIItemInfo(this.group, this.category, this.no, this.dicKey), (ObjectCtrlInfo)null, (TreeNodeObject)null, true, this.initialPosition); this.tno = ociItem == null ? (TreeNodeObject)null : ociItem.treeNodeObject; }