コード例 #1
0
 private void CreateListBoxItem(string eventName, string dateTime, string filePath)
 {
     if (lvLog.InvokeRequired)
     {
         DelegateCreateListBoxItem clbi = new DelegateCreateListBoxItem(InvokedCreateListViewItme);
         Invoke(clbi, new object[3] {
             eventName, dateTime, filePath
         });
     }
     else
     {
         InvokedCreateListViewItme(eventName, dateTime, filePath);
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: goodluck3586/CSharpClass2019
 void CreateListBoxItem(string EventName, string DateTime, string FilePath)
 {
     if (this.lbLog.InvokeRequired)
     {
         DelegateCreateListBoxItem DelView = new DelegateCreateListBoxItem(InvokedCreateListViewItem);
         Invoke(DelView, new object[3] {
             EventName, DateTime, FilePath
         });
     }
     else
     {
         InvokedCreateListViewItem(EventName, DateTime, FilePath);
     }
 }