예제 #1
0
        private void ButtonImportInfo_Click(object sender, EventArgs e)
        {
            try
            {
                if (OpenFileDialogImport.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                ImportInfo();
            }
            catch (Exception oExcep)
            {
                ShowLogMessage(TraceEventType.Error, "インポートボタンクリック時エラー:\n" + oExcep.Message);
                ShowLogMessage(TraceEventType.Verbose, " スタックトレース:\n" + oExcep.StackTrace);
            }
        }
예제 #2
0
 /// <summary>
 /// Open a Window Dialog to select a .csv file
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnSelectionFichier_Click(object sender, EventArgs e)
 {
     OpenFileDialogImport.Filter = "CSV files (*.csv) |*.csv";
     OpenFileDialogImport.ShowDialog();
 }