Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        private void eraseButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.ERASE, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if (af.Success)
                {
                    MessageBox.Show("Device Erased");
                }
            }
        }
Exemplo n.º 2
0
        private void verifyButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.VERIFY, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if (af.Success)
                {
                    MessageBox.Show("Flash verification succeeded.");
                }
            }
        }
Exemplo n.º 3
0
        private void programButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.PROGRAM, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if (af.Success)
                {
                    MessageBox.Show("Bootloading completed successfully.");
                }
            }
        }
Exemplo n.º 4
0
        private void verifyButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.VERIFY, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if(af.Success)
                    MessageBox.Show("Flash verification succeeded.");
            }
        }
Exemplo n.º 5
0
        private void programButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.PROGRAM, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if(af.Success)
                    MessageBox.Show("Bootloading completed successfully.");
            }
        }
Exemplo n.º 6
0
        private void eraseButton_Click(object sender, EventArgs e)
        {
            String filename = this.ChooseFirmwareFile();

            if (filename != null)
            {
                ActionForm af = new ActionForm(this.host, FreebooterHost.Actions.ERASE, new FileStream(filename, FileMode.Open, FileAccess.Read));
                af.ShowDialog();
                if(af.Success)
                    MessageBox.Show("Device Erased");
            }
        }