示例#1
0
        private void acronisPanelToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DiskUsageForm af = new DiskUsageForm();

            af.Icon = Icon;
            af.Show();
        }
示例#2
0
        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);
        }