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