public void DataBaseLoad(ucMaterialPropertiesEstimation ucMaterialPropertiesEstimation1,string strName) { MPEClass1 = new MPEClass(); MPEData MPEData1 = MPEClass1.NewMPEData(); MPEData1.Name = strName; DB_Load(MPEData1); ParameterInput(MPEData1,ucMaterialPropertiesEstimation1); MaterialTypeInput(MPEData1); MPEClass1.SID = int.Parse(lblDataBaseLoad_ID.Text); MPEClass1.Name = lblDataBaseLoadName.Text; frmCalc frmCalc1 = new frmCalc(); frmCalc1.MPEClass1 = MPEClass1; frmCalc1.ShowDialog(); //MPEData1.Calc(); //MPEClass1.Temp(); //MPEClass1.Calc(); }
public void FileParsing(string strFileName) { MPEClass MPEClass1 = new MPEClass(); MPEData MPEData1 = MPEClass1.NewMPEData(); bool result = MPEData1.FileLoad_2(strFileName); if(result == false) // ��ȿ�� ȭ���� �ƴϸ� �����Ѵ� { MPEClass1.DeleteMPEData(MPEData1); } else { Save(MPEData1); } }
public void FileAllParsing(ucMaterialPropertiesEstimation ucMaterialPropertiesEstimation1,string strName) { bool result; for(int i = 0 ; i < lstFileList.Items.Count ; i++) { MPEClass1 = new MPEClass(); MPEData MPEData1 = MPEClass1.NewMPEData(); result = MPEData1.FileLoad(lstFileList.Items[i].SubItems[1].Text); if(result == false) // ��ȿ�� ȭ���� �ƴϸ� �����Ѵ� { MPEClass1.DeleteMPEData(MPEData1); } else { MPEClass1.Name = strName; ParameterInput(MPEData1,ucMaterialPropertiesEstimation1); MaterialTypeInput(MPEData1); //MPEData1.Calc(); } } if(MPEClass1 != null) { frmCalc frmCalc1 = new frmCalc(); frmCalc1.MPEClass1 = MPEClass1; frmCalc1.ShowDialog(); } }