private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            if (gridView1.RowCount > 0)
            {
                //int intRow = gridView1.GetSelectedRows()[0];
                string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row["FileGuID"].ToString();

                frmFileAdd frmFileAdd = new frmFileAdd();
                frmFileAdd.FileEdit(guid);
            }
        }
 //新增
 private void tsbAdd_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode != null)
     {
         frmFileAdd frmFileAdd = new frmFileAdd();
         frmFileAdd.FileAdd(treeView1.SelectedNode.Tag.ToString(), treeView1.SelectedNode.Text);
     }
     else
     {
         this.ShowAlertMessage("请先选择文件类别后再添加!");
     }
 }
Example #3
0
 /// <summary>
 /// 货品新增
 /// </summary>
 public frmFileAdd()
 {
     InitializeComponent();
     frmfileadd = this;
 }