/// <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; }); }
/// <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); }
/// <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); }
/// <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; }); }