private void miOpenFile_Click(object sender, EventArgs e) { if (fDataMap.CurrentItem != null) { DTHelper.LoadExtFile(fDataMap.CurrentItem.Name); } }
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(); }
public OptionsDlg() { InitializeComponent(); btnAccept.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_accept.gif"); btnCancel.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_cancel.gif"); }
private void miExplore_Click(object sender, EventArgs e) { if (fDataMap.CurrentItem != null) { string path = Path.GetDirectoryName(fDataMap.CurrentItem.Name); DTHelper.LoadExtFile(path); } }
private void lblMail_Click(object sender, EventArgs e) { Label lbl = sender as Label; if (lbl != null) { DTHelper.LoadExtFile(lbl.Text); } }
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"; }
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { SaveOptions(DTHelper.GetAppPath() + "DiskTracker.ini"); }