public MaterialDefinitionWindow() { totalMaterials = new List <Dictionary <string, Dictionary <string, string> > >(); totalMaterialsNum = 0; InitializeComponent(); adb = new UseAccessDB(); openDataBase = adb.OpenDb(); }
public MaterialLoadWindow() { // 添加逻辑:初始时查库,得到所有material,及其数据 findFromDataBaseMaterials = new List <Dictionary <string, Dictionary <string, string> > >(); updatedMaterialIndexInfindFromDataBaseMaterials = new HashSet <int>(); deleteMaterialIndexInfindFromDataBaseMaterials = new HashSet <int>(); updatedMaterials = new Dictionary <int, Dictionary <string, Dictionary <string, string> > >(); currentClickRowOfListBox = -1; isUpdate = false; InitializeComponent(); adb = new UseAccessDB(); adb.OpenDb(); }
public NewMaterialWindow() { //init //读mat_table,将4条mat读出来,逐条添加到MatComBox matNameToMatDetail = new Dictionary <string, Dictionary <string, string> >(); soeNameToSoeDetail = new Dictionary <string, Dictionary <string, string> >(); matSoeMap = new Dictionary <string, string>(); matSoeMap.Add("NULL", "LINEAR_POLYNOMIAL"); matSoeMap.Add("HIGH_EXPLOSIVE_BURN", "JWL"); matSoeMap.Add("JOHNSON_COOK", "GRUNEISEN"); matSoeMap.Add("PLASTIC_KINEMATIC", "-"); matNameToMatDetail.Add("NULL", new Dictionary <string, string>() { { "RO", "0" }, { "PC", "0" }, { "MU", "0" }, { "TEROD", "0" }, { "CEROD", "0" }, { "YM", "0" }, { "PR", "0" } }); matNameToMatDetail.Add("HIGH_EXPLOSIVE_BURN", new Dictionary <string, string>() { { "RO", "0" }, { "D", "0" }, { "PCJ", "0" }, { "BETA", "0" }, { "K", "0" }, { "G", "0" }, { "SIGY", "0" } }); matNameToMatDetail.Add("JOHNSON_COOK", new Dictionary <string, string>() { { "RO", "0" }, { "G", "0" }, { "E", "0" }, { "PR", "0" }, { "DTF", "0" }, { "VP", "0" }, { "RATEOP", "0" }, { "A", "0" }, { "B", "0" }, { "N", "0" }, { "C", "0" }, { "M", "0" }, { "TM", "0" }, { "TR", "0" }, { "EPSO", "0" }, { "CP", "0" }, { "PC", "0" }, { "SPALL", "0" }, { "IT", "0" }, { "D1", "0" }, { "D2", "0" }, { "D3", "0" }, { "D4", "0" }, { "D5", "0" }, { "EROD", "0" }, { "EFMIN", "0" }, { "NUMINT", "0" }, { "C2P", "0" } }); matNameToMatDetail.Add("PLASTIC_KINEMATIC", new Dictionary <string, string>() { { "RO", "0" }, { "E", "0" }, { "PR", "0" }, { "SIGY", "0" }, { "ETAN", "0" }, { "BETA", "0" }, { "SRC", "0" }, { "SRP", "0" }, { "FS", "0" }, { "VP", "0" } }); soeNameToSoeDetail.Add("LINEAR_POLYNOMIAL", new Dictionary <string, string>() { { "C0", "0" }, { "C1", "0" }, { "C2", "0" }, { "C3", "0" }, { "C4", "0" }, { "C5", "0" }, { "C6", "0" }, { "E0", "0" }, { "V0", "0" } }); soeNameToSoeDetail.Add("JWL", new Dictionary <string, string>() { { "A", "0" }, { "B", "0" }, { "R1", "0" }, { "R2", "0" }, { "OMEG", "0" }, { "E0", "0" }, { "V0", "0" } }); soeNameToSoeDetail.Add("GRUNEISEN", new Dictionary <string, string>() { { "C", "0" }, { "S1", "0" }, { "S2", "0" }, { "S3", "0" }, { "GAMAO", "0" }, { "A", "0" }, { "E0", "0" }, { "V0", "0" } }); soeNameToSoeDetail.Add("-", new Dictionary <string, string>()); // 初始化时:gatherMat,gatherSoe初始化为matNameToMatDetail, soeNameToSoeDetail InitializeComponent(); adb = new UseAccessDB(); adb.OpenDb(); }
public DataBaseWindow() { InitializeComponent(); adb = new UseAccessDB(); adb.OpenDb(); ArrayList al = adb.getTableName(); if (al.Count != 0) { dataTable.ItemsSource = al; dataTable.SelectedItem = al[0]; } }