예제 #1
0
파일: MUSASHI808GX.cs 프로젝트: houxpGit/12
 public MUSASHI808GX(TextBox txtBox, ToolStripStatusLabel toolStrip)
 {
     txtBoxCurrentPressure  = txtBox;
     toolStripStatus        = toolStrip;
     toolStripStatus.Click += toolStripStatus_Click;
     m_data = MUSASHIData.LoadObj(toolStrip.Text);
     Init();
 }
예제 #2
0
        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);
        }
예제 #3
0
 public FormMasashi(MUSASHIData data)
 {
     InitializeComponent();
     m_data = data;
 }