Пример #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();
        }
Пример #2
0
        public OptionsDlg()
        {
            InitializeComponent();

            btnAccept.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_accept.gif");
            btnCancel.Image = DTHelper.LoadResourceImage("DiskTracker.Resources.btn_cancel.gif");
        }
Пример #3
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";
        }