Example #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;
     });
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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;
     });
 }