public TextViewItem(ListView listView, string defaultName, MetaGrfHolder metaGrf, object itemFile) { _metaGrf = metaGrf; ListView = listView; ItemFile = itemFile; InitializeComponent(); _tblockDescription.PreviewMouseMove += (e, a) => OnMouseOver(e); _tbText.TextChanged += _tbText_TextChanged; _toolTip = new ToolTip(); _tRectangleOverlay.ToolTip = _toolTip; MouseEnter += new MouseEventHandler(_tkTreeViewItem_MouseEnter); MouseLeave += new MouseEventHandler(_tkTreeViewItem_MouseLeave); DefaultValue = defaultName; PreviewDragEnter += _dragOver; PreviewDragOver += _dragOver; PreviewDragLeave += _dragLeave; PreviewDrop += (e, a) => { _tbText.OnMainGridDrop(e, a); a.Handled = true; }; //CheckValid(defaultName); }
public GenericDatabase(MetaGrfHolder metaGrf) { _metaGrf = metaGrf; Commands = new CommandsHolder(); }