コード例 #1
0
ファイル: SMEXMLReader.cs プロジェクト: shepherd44/SME_Window
 public SMEXMLReader(SMEProjectInformation proinfo,
                     SMESystemInformation sysinfo,
                     SMEExceptionInformation exinfo,
                     SMECallstackInformation callstackinfo)
 {
     m_xmldocument = new XDocument();
     m_rootElement = new XElement("SME");
     m_xmldocument.Add(m_rootElement);
     m_rootElement.Add(proinfo.ToXElement());
     m_rootElement.Add(sysinfo.ToXElement());
     m_rootElement.Add(exinfo.ToXElement());
     m_rootElement.Add(callstackinfo.ToXElement());
 }
コード例 #2
0
ファイル: SMEClient.cs プロジェクト: shepherd44/SME_Window
 // SMEClient 생성자
 // @currentapplication: Form을 사용할 경우 대입 아닐 경우 null
 // @currentDomain: 호출해 준 프로세스의 기본 앱도메인
 public SMEClient(string proname,
     Version proversion,
     bool iscatchne,
     bool iscatchhe,
     String APIKey)
 {
     // Project에 대응하는 api key(project id)
     APIKEY = APIKey;
     IsCatchNE = iscatchne;
     IsCatchHE = iscatchhe;
     IsSend = false;
     ServerIP = string.Empty;
     ServerPort = -1;
     ProjectInfo = new SMEProjectInformation(proname, proversion);
     Initialize();
 }
コード例 #3
0
ファイル: SMEClient.cs プロジェクト: shepherd44/SME_Window
 public SMEClient(string proname,
     Version proversion,
     bool iscatchne,
     bool iscatchhe,
     String APIKey,
     string serverip,
     int serverport)
 {
     // Project에 대응하는 api key(project id)
     APIKEY = APIKey;
     IsCatchNE = iscatchne;
     IsCatchHE = iscatchhe;
     IsSend = true;
     ServerIP = serverip;
     ServerPort = serverport;
     ProjectInfo = new SMEProjectInformation(proname, proversion);
     Initialize();
 }
コード例 #4
0
ファイル: SMEXMLReader.cs プロジェクト: shepherd44/SME_Window
        public void LoadFromXML(string path)
        {
            m_xmldocument = XDocument.Load(path);
            m_rootElement = (XElement)m_xmldocument.FirstNode;
            if(m_rootElement.Name.ToString().Equals("SME"))
            {
                XElement el = (XElement)m_rootElement.FirstNode;
                ProjectInfo = new SMEProjectInformation(el);
                el = (XElement)el.NextNode;
                SystemInfo = new SMESystemInformation(el);
                el = (XElement)el.NextNode;
                ExceptionInfo = new SMEExceptionInformation(el);
                el = (XElement)el.NextNode;
                CallStackInfo = new SMECallstackInformation(el);

            }
            else
            {
                throw new Exception("SME XML 파일이 아닙니다.");
            }
        }
コード例 #5
0
 public SMEProjectInformation(SMEProjectInformation proinfo)
 {
     Name = proinfo.Name;
     m_Version = new Version(proinfo.m_Version.ToString());
 }