예제 #1
0
 public ProgressForm(nRFupdateControl d)
 {
     InitializeComponent();
     usbDongle = d;
     d.UpdateProgressChanged += new EventHandler<ProgressEventArgs>(usbDongle_UpdateProgressChanged);
     d.FlashVerified += new EventHandler<BoolEventArgs>(usbDongle_FlashVerified);
     d.UpdateComplete += new EventHandler<BoolEventArgs>(usbDongle_UpdateComplete);
     d.UpdateStarted += new EventHandler(usbDongle_UpdateStarted);
     d.DongleDisconnected += new EventHandler(d_Disconnected);
     d.DeviceDisconnected += new EventHandler(d_Disconnected);
     d.VerificationStarted += new EventHandler(usbDongle_VerificationStarted);
 }
예제 #2
0
 public ProgressForm(nRFupdateControl d)
 {
     InitializeComponent();
     usbDongle = d;
     d.UpdateProgressChanged += new EventHandler <ProgressEventArgs>(usbDongle_UpdateProgressChanged);
     d.FlashVerified         += new EventHandler <BoolEventArgs>(usbDongle_FlashVerified);
     d.UpdateComplete        += new EventHandler <BoolEventArgs>(usbDongle_UpdateComplete);
     d.UpdateStarted         += new EventHandler(usbDongle_UpdateStarted);
     d.DongleDisconnected    += new EventHandler(d_Disconnected);
     d.DeviceDisconnected    += new EventHandler(d_Disconnected);
     d.VerificationStarted   += new EventHandler(usbDongle_VerificationStarted);
 }
예제 #3
0
        public nRFupdateForm()
        {
            InitializeComponent();
            // Instantiate data dongle logic class
            usbDongle = new nRFupdateControl();

            // Add listeners to events triggered by USB logic
            usbDongle.DongleConnected    += new EventHandler(usbDongle_Connected);
            usbDongle.DongleDisconnected += new EventHandler(usbDongle_Disconnected);
            usbDongle.DeviceConnected    += new EventHandler <ConnectionEventArgs>(rfDevice_Connected);
            usbDongle.DeviceDisconnected += new EventHandler(rfDevice_Disconnected);
            usbDongle.HexVerified        += new EventHandler <BoolEventArgs>(hex_Verified);
            usbDongle.UpdateStarted      += new EventHandler(usbDongle_UpdateStarted);
            usbDongle.ReadyToRun         += new EventHandler(usbDongle_ReadyToRun);

            // Status update event used to pass text messages to gui textbox
            usbDongle.StatusUpdate += new EventHandler <MessageEventArgs>(usbDongle_StatusUpdate);

            newVersionTextbox.KeyPress += new KeyPressEventHandler(newVersionTextbox_KeyPress);

            // Progress popup window
            pform1 = new ProgressForm(usbDongle);
        }
예제 #4
0
        public nRFupdateForm()
        {
            InitializeComponent();
            // Instantiate data dongle logic class
            usbDongle = new nRFupdateControl();

            // Add listeners to events triggered by USB logic
            usbDongle.DongleConnected += new EventHandler(usbDongle_Connected);
            usbDongle.DongleDisconnected += new EventHandler(usbDongle_Disconnected);
            usbDongle.DeviceConnected += new EventHandler<ConnectionEventArgs>(rfDevice_Connected);
            usbDongle.DeviceDisconnected += new EventHandler(rfDevice_Disconnected);
            usbDongle.HexVerified += new EventHandler<BoolEventArgs>(hex_Verified);
            usbDongle.UpdateStarted += new EventHandler(usbDongle_UpdateStarted);
            usbDongle.ReadyToRun += new EventHandler(usbDongle_ReadyToRun);

            // Status update event used to pass text messages to gui textbox
            usbDongle.StatusUpdate += new EventHandler<MessageEventArgs>(usbDongle_StatusUpdate);

            newVersionTextbox.KeyPress += new KeyPressEventHandler(newVersionTextbox_KeyPress);

            // Progress popup window
            pform1 = new ProgressForm(usbDongle);
        }