Example #1
0
        public MainForm()
        {
            InitializeComponent();

            fColorScheme = new Dictionary <string, Color>();

            LoadOptions(DTHelper.GetAppPath() + "DiskTracker.ini");

            fDataMap      = new TreeMapViewer();
            fDataMap.Dock = DockStyle.Fill;
            fDataMap.MouseoverHighlight = true;
            fDataMap.OnHintRequest     += OnHintRequest;
            fDataMap.MouseMove         += OnMouseMove;
            fDataMap.ContextMenuStrip   = mnuTreeMap;
            Controls.Add(fDataMap);
            Controls.SetChildIndex(fDataMap, 0);

            tsbRefresh.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_refresh.gif");
            tsbOptions.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_tools.gif");
            tsbAbout.Image   = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_help.gif");
            tsbCalc.Image    = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_calc.gif");

            if (fColorScheme.Count <= 0)
            {
                ResetColorScheme();
            }

            UpdateDisksList();
        }
Example #2
0
 private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     SaveOptions(DTHelper.GetAppPath() + "DiskTracker.ini");
 }