Exemple #1
0
        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);
        }
Exemple #2
0
 protected void ClickFunc()
 {
     OnCreateNew();
     window.ClearContent();
     OnShow();
 }