コード例 #1
0
        private void btAddDoc_Click(object sender, EventArgs e)
        {
            var aNode = treeView1.SelectedNode as MorphNode;

            if (aNode == null)
            {
                return;
            }
            if (aNode.NodeType != clNodeType.clnContainer || aNode.bdID == Session.MainStoreID)
            {
                return;
            }
            string result = Microsoft.VisualBasic.Interaction.InputBox("Введите имя документа:");

            if (String.IsNullOrEmpty(result))
            {
                return;
            }
            var ContID = aNode.bdID;
            var id     = store.SaveDocumentBD(result, ContID);
        }