コード例 #1
0
ファイル: Main.cs プロジェクト: lolindrath/dragonsong
        private void mnuOpenLog_Click(object sender, EventArgs e)
        {
            openFileDialog1.InitialDirectory = Directory.GetParent(Application.UserAppDataPath).FullName + @"\log\";
            openFileDialog1.Filter           = "Log Files (*.log)|*.log|All Files (*.*)|*.*";

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                FrmLogViewer frm = new FrmLogViewer(openFileDialog1.FileName);
                frm.Show();
            }
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: lolindrath/dragonsong
        private void mnuOpenLog_Click(object sender, EventArgs e)
        {
            openFileDialog1.InitialDirectory = Directory.GetParent(Application.UserAppDataPath).FullName + @"\log\";
            openFileDialog1.Filter = "Log Files (*.log)|*.log|All Files (*.*)|*.*";

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                FrmLogViewer frm = new FrmLogViewer(openFileDialog1.FileName);
                frm.Show();
            }
        }