예제 #1
0
        /// <summary>
        /// 材料选择
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PartsMange_MaterialBankManage_AddMaterialInfor_Material_ButtonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            var materialForm = new MaterialBankManage();

            materialForm.Tag = "choose";
            materialForm.ShowDialog();
            if (materialForm.DialogResult == DialogResult.OK)
            {
                if (materialForm.material == null)
                {
                    return;
                }
                PartsMange_MaterialBankManage_AddMaterialInfor_Material_ButtonEdit.Text = materialForm.material.Name;
                material.Material_Id = materialForm.material.Id;
            }
        }
예제 #2
0
 /// <summary>
 /// 材料选择
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PartsMange_MaterialBankManage_AddMaterialInfor_Material_ButtonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     var materialForm = new MaterialBankManage();
     materialForm.Tag = "choose";
     materialForm.ShowDialog();
     if (materialForm.DialogResult == DialogResult.OK)
     {
         if (materialForm.material == null) return;
         PartsMange_MaterialBankManage_AddMaterialInfor_Material_ButtonEdit.Text = materialForm.material.Name;
         material.Material_Id = materialForm.material.Id;
     }
 }