Beispiel #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;
     });
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #4
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);
 }
Beispiel #5
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);
 }
Beispiel #6
0
 /// <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;
     });
 }