コード例 #1
0
 /// <summary>
 /// Handles the UsbStickContentWritten event of the usbStickWriter control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="StickFactory.UsbStickWriteMessageEventArgs"/> instance containing the event data.</param>
 /// <remarks>CFI, 2012-02-24</remarks>
 void usbStickWriter_UsbStickContentWritten(object sender, UsbStickWriteMessageEventArgs e)
 {
     this.Invoke((MethodInvoker) delegate
     {
         statusControls[e.Drive.RootDirectory.ToString()[0]].ContentWritten = true;
     });
 }
コード例 #2
0
 /// <summary>
 /// Handles the UsbStickWriteStatusMessage event of the usbStickWriter control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="StickFactory.UsbStickWriteMessageEventArgs"/> instance containing the event data.</param>
 /// <remarks>CFI, 2012-02-24</remarks>
 void usbStickWriter_UsbStickWriteStatusMessage(object sender, UsbStickWriteMessageEventArgs e)
 {
     ChangeDeviceTextFromList(e.Drive.RootDirectory.ToString()[0], e.Message);
 }
コード例 #3
0
 /// <summary>
 /// Handles the UsbStickWriteError event of the usbStickWriter control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="StickFactory.UsbStickWriteMessageEventArgs"/> instance containing the event data.</param>
 /// <remarks>CFI, 2012-02-24</remarks>
 void usbStickWriter_UsbStickWriteError(object sender, UsbStickWriteMessageEventArgs e)
 {
     ChangeDeviceTextFromList(e.Drive.RootDirectory.ToString()[0], "Error: " + e.Message, Color.LightCoral);
 }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: Stoner19/Memory-Lifter
 /// <summary>
 /// Handles the UsbStickWriteStatusMessage event of the usbStickWriter control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="StickFactory.UsbStickWriteMessageEventArgs"/> instance containing the event data.</param>
 /// <remarks>CFI, 2012-02-24</remarks>
 void usbStickWriter_UsbStickWriteStatusMessage(object sender, UsbStickWriteMessageEventArgs e)
 {
     ChangeDeviceTextFromList(e.Drive.RootDirectory.ToString()[0], e.Message);
 }
コード例 #5
0
ファイル: MainForm.cs プロジェクト: Stoner19/Memory-Lifter
 /// <summary>
 /// Handles the UsbStickWriteError event of the usbStickWriter control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="StickFactory.UsbStickWriteMessageEventArgs"/> instance containing the event data.</param>
 /// <remarks>CFI, 2012-02-24</remarks>
 void usbStickWriter_UsbStickWriteError(object sender, UsbStickWriteMessageEventArgs e)
 {
     ChangeDeviceTextFromList(e.Drive.RootDirectory.ToString()[0], "Error: " + e.Message, Color.LightCoral);
 }
コード例 #6
0
ファイル: MainForm.cs プロジェクト: Stoner19/Memory-Lifter
 /// <summary>
 /// Handles the UsbStickIdSet event of the usbStickWriter control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="StickFactory.UsbStickWriteMessageEventArgs"/> instance containing the event data.</param>
 /// <remarks>CFI, 2012-02-24</remarks>
 void usbStickWriter_UsbStickIdSet(object sender, UsbStickWriteMessageEventArgs e)
 {
     this.Invoke((MethodInvoker)delegate
     {
         statusControls[e.Drive.RootDirectory.ToString()[0]].IdSet = true;
     });
 }