public void MergeTag(TagWindow another) { int precount = data.Count; another.ClearContent(); data.AddRange(another.data); for (int i = precount; i < data.Count; ++i) { data[i].OnTransfer(this); } if (!IsCtrlBtnFolded) { WinHeight = Height + (data.Count - precount) * CtrlButtonSize; for (int i = precount; i < data.Count; ++i) { GridAddButton(data[i]); } } UpdateCtrlBtnContent(); ((MainWindow)Application.Current.MainWindow).DeleteTagWindow(another); }
protected void ClickFunc() { OnCreateNew(); window.ClearContent(); OnShow(); }