Пример #1
0
 public MD_Nodes SaveNew()
 {
     _nodesData                  = new MD_Nodes();
     _nodesData.ID               = Guid.NewGuid().ToString();
     this.NodesData.NodeName     = this.TE_NAME.EditValue.ToString();
     this.NodesData.DWDM         = this.TE_DWDM.EditValue.ToString();
     this.NodesData.DisplayTitle = this.TE_DISPLAY.EditValue.ToString();
     this.NodesData.Descript     = this.TE_DESCRIPT.EditValue.ToString();
     using (MetaDataServiceClient _mdc = new MetaDataServiceClient())
     {
         if (_mdc.SaveNewNodes(this.NodesData))
         {
             XtraMessageBox.Show("添加成功!");
         }
         return(_nodesData);
     }
 }