public MUSASHI808GX(TextBox txtBox, ToolStripStatusLabel toolStrip) { txtBoxCurrentPressure = txtBox; toolStripStatus = toolStrip; toolStripStatus.Click += toolStripStatus_Click; m_data = MUSASHIData.LoadObj(toolStrip.Text); Init(); }
public static MUSASHIData LoadObj(string strObjName) { MUSASHIData pDoc; XmlSerializer xmlSerializer = new XmlSerializer(typeof(MUSASHIData)); FileStream fsReader = null; try { fsReader = File.OpenRead(@".//Parameter/MUSASHIData" + strObjName + ".xml"); pDoc = (MUSASHIData)xmlSerializer.Deserialize(fsReader); fsReader.Close(); } catch //(Exception eMy) { if (fsReader != null) { fsReader.Close(); } pDoc = new MUSASHIData(); } pDoc.m_strObjName = strObjName; return(pDoc); }
public FormMasashi(MUSASHIData data) { InitializeComponent(); m_data = data; }