コード例 #1
0
ファイル: Form1.cs プロジェクト: 404UserNotFound/sourcemod
        private void menu_file_open_Click(object sender, EventArgs e)
        {
            DialogResult res;

            res = dialog_open.ShowDialog(this);

            if (res != DialogResult.OK)
            {
                return;
            }

            m_Report = null;

            try
            {
                m_Report = new ProfileReport(dialog_open.FileName);
            }
            catch (System.Exception ex)
            {
                MessageBox.Show("Error opening or parsing file: " + ex.Message);
            }

            UpdateListView();
        }
コード例 #2
0
        private void menu_file_open_Click(object sender, EventArgs e)
        {
            DialogResult res;

            res = dialog_open.ShowDialog(this);

            if (res != DialogResult.OK)
            {
                return;
            }

            m_Report = null;

            try
            {
                m_Report = new ProfileReport(dialog_open.FileName);
            }
            catch (System.Exception ex)
            {
                MessageBox.Show("Error opening or parsing file: " + ex.Message);
            }

            UpdateListView();
        }