Beispiel #1
0
        private frmTable GetTableForm()
        {
            if (frmTable == null)
            {
                frmTable = new frmTable();
                frmTable.SelectItemAct = o =>
                {
                    if (frmProperty != null)
                    {
                        frmProperty.SetObject(o);
                    }
                };
                frmTable.CloseAct = () =>
                {
                    frmTable = null;
                    if (frmProperty != null)
                    {
                        frmProperty.SetObject(null);
                    }
                };
                frmTable.Show(dockMgr, DockState.Document);
            }

            return(frmTable);
        }
Beispiel #2
0
        private frmTable GetTableForm()
        {
            if (frmTable == null)
            {
                frmTable = new frmTable();
                frmTable.SelectItemAct = o =>
                {
                    PropertyUnity.SetObject(o);
                };
                frmTable.CloseAct = () =>
                {
                    frmTable = null;
                    PropertyUnity.SetObject(null);
                };
                frmTable.CheckItemsAct = c =>
                {
                    spCount.Text = "选择了 " + c + "个";
                };
                frmTable.Show(dockMgr, DockState.Document);
            }

            return(frmTable);
        }