private void ShowDetailedUsage() { if (duf == null || duf.IsDisposed) { duf = new DiskUsageForm(); duf.Icon = Icon; } // Sorry, I know it looks like there is a MVC pattern in use, but really it's just // a giant f*****g mess. DiskUsageView duv = new DiskUsageView(); DiskUsageModel dum = new DiskUsageModel(vhd.masterBootRecord.getPartitionRecords()); DiskUsageController duc = new DiskUsageController(); // DiskModel dm = new DiskModel(vhd.footer, vhd.dynamicHeader, vhd.blockAllocationTable, vhd.masterBootRecord); duf.AddDisk(vhd); duf.Show(); //duf.footer = vhd.footer; //duf.dynamicHeader = vhd.dynamicHeader; //duf.blockAllocationTable = vhd.blockAllocationTable; //duf.masterBootRecord = vhd.masterBootRecord; //duf.diskModel = dm; // A duplication of the above 4. //duv.model = dum; //duv.controller = duc; //duf.AddDisk(duv); //duf.Text = filename; //duf.Show(); // duf.AddDisk(vhd); }
private void ShowDetailedUsage() { using (RotateWaitThreaded.Hold("Processing MBR for {0}", vhd.Filename)) { // Sorry, I know it looks like there is a MVC pattern in use, but really it's just // a giant f*****g mess. DiskUsageView duv = new DiskUsageView(); DiskUsageModel dum = new DiskUsageModel(vhd.masterBootRecord.getPartitionRecords()); DiskUsageController duc = new DiskUsageController(); // DiskModel dm = new DiskModel(vhd.footer, vhd.dynamicHeader, vhd.blockAllocationTable, vhd.masterBootRecord); } }