コード例 #1
0
 private void tsbAdd_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode != null)
     {
         frmEquipmentAdd frmEquipmentAdd = new frmEquipmentAdd();
         frmEquipmentAdd.EquipmentAdd(treeView1.SelectedNode.Tag.ToString());
     }
 }
コード例 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (gridView1.RowCount > 0)
            {
                string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString();


                frmEquipmentAdd frmEquipmentAdd = new frmEquipmentAdd();
                frmEquipmentAdd.EquipmentEdit(guid);
            }
        }