コード例 #1
0
        public SdkAnalyzerForm()
        {
            InitializeComponent();
            m_collector = new DataCollector();
            System.IO.Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + _PATH.TRACER_PATH);
            tbxLogOutput.Text = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + _PATH.TRACER_PATH + _PATH.TRACER_LOG;
            m_collector.SetLog(tbxLogOutput.Text);
            m_collector.Create();

            FileInfo log_path = new FileInfo(tbxLogOutput.Text);

            if (log_path.Exists)
            {
                button_Open.Enabled  = true;
                btnDeleteLog.Enabled = true;
            }
            else
            {
                button_Open.Enabled  = false;
                btnDeleteLog.Enabled = false;
            }
        }