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