示例#1
0
 private void miOpenFile_Click(object sender, EventArgs e)
 {
     if (fDataMap.CurrentItem != null)
     {
         DTHelper.LoadExtFile(fDataMap.CurrentItem.Name);
     }
 }
示例#2
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();
        }
示例#3
0
        public OptionsDlg()
        {
            InitializeComponent();

            btnAccept.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_accept.gif");
            btnCancel.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_cancel.gif");
        }
示例#4
0
 private void miExplore_Click(object sender, EventArgs e)
 {
     if (fDataMap.CurrentItem != null)
     {
         string path = Path.GetDirectoryName(fDataMap.CurrentItem.Name);
         DTHelper.LoadExtFile(path);
     }
 }
示例#5
0
        private void lblMail_Click(object sender, EventArgs e)
        {
            Label lbl = sender as Label;

            if (lbl != null)
            {
                DTHelper.LoadExtFile(lbl.Text);
            }
        }
示例#6
0
        public AboutDlg()
        {
            InitializeComponent();

            btnClose.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_accept.gif");

            Text          = "About";
            btnClose.Text = "Close";

            Assembly assembly = typeof(DTHelper).Assembly;

            lblProduct.Text   = assembly.GetName().Name;
            lblVersion.Text   = @"Version " + assembly.GetName().Version;
            lblCopyright.Text = DTHelper.GetAppCopyright();

            lblProjSite.Text = "https://github.com/Serg-Norseman/DiskTracker";
            lblMail.Text     = "https://github.com/Serg-Norseman/DiskTracker/issues";
        }
示例#7
0
 private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     SaveOptions(DTHelper.GetAppPath() + "DiskTracker.ini");
 }