Example #1
0
 public CheckSumWin(CloningTool parent)
 {
     InitializeComponent();
     this.cloningTool = parent;
     version.Text     = "Version " + cloningTool.Version;
     AddingSwPackageTable();
     AddingToValidHashTable();
 }
Example #2
0
        public Drivers(string drive_name, int drive_order, CloningTool Parent)
        {
            Drive_Worker            = new BackgroundWorker();
            Drive_Name              = drive_name;
            Drive_Order             = drive_order;
            Main_Form               = Parent;
            Loading_Status.Location = new Point(X_Location_status, Y_Location + drive_order * Y_Multiplier_Value);
            Complete_pic.Location   = new Point(X_Location, Y_Location + drive_order * Y_Multiplier_Value);
            Error_pic.Location      = new Point(X_Location, Y_Location + drive_order * Y_Multiplier_Value);
            Loading_pic.Location    = new Point(X_Location, Y_Location + drive_order * Y_Multiplier_Value);

            Main_Form.Controls.Add(Loading_pic);
            Main_Form.Controls.Add(Complete_pic);
            Main_Form.Controls.Add(Error_pic);
            Main_Form.Controls.Add(Loading_Status);

            CheckSumTools = new CheckSumTools(Main_Form.HashesFile);

            this.Drive_Worker.DoWork             += new System.ComponentModel.DoWorkEventHandler(this.Drive_Worker_DoWork);
            this.Drive_Worker.ProgressChanged    += new System.ComponentModel.ProgressChangedEventHandler(this.Drive_Worker_ProgressChanged);
            this.Drive_Worker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.Drive_Worker_RunWorkerCompleted);
            Drive_Worker.WorkerReportsProgress    = true;
        }