Exemple #1
0
 public SHSFComunicate(TextBox txtBox, ToolStripStatusLabel toolStrip)
 {
     txtBoxCurrentPressure  = txtBox;
     toolStripStatus        = toolStrip;
     toolStripStatus.Click += toolStripStatus_Click;
     m_data = SHSFData.LoadObj(toolStrip.Text);
     Init();
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public FormSHSF(SHSFData data)
 {
     InitializeComponent();
     m_data = data;
 }