Exemple #1
0
        private void ZeldaHUD_Load(object sender, EventArgs e)
        {
            TimerImage.MakeTransparent(Color.Fuchsia);
            CountImage.MakeTransparent(Color.Fuchsia);
            Text = "Right Click Here";
            pictureBox1.Image = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            g = Graphics.FromImage(pictureBox1.Image);

            AddItems();
            SetDefaultItems();

            loadLayout();
            LoadIconsSet(currentIconSet);
            if (currentBG != "None")
            {
                backgroundimage = new Bitmap(currentBG);
                backgroundimage.MakeTransparent(Color.Fuchsia);
            }
            DrawIcons();
            //if (checkUpdate)
            //{
            //    if (Version.CheckUpdate() == true)
            //    {
            //        var window = MessageBox.Show("There is a new version available do you want to download the update?", "Update Available", MessageBoxButtons.YesNo);
            //        if (window == DialogResult.Yes)
            //        {
            //            Help.ShowHelp(null, @"https://github.com/Formedras/ZeldaHUD/releases");
            //        }
            //    }
            //}
        }
Exemple #2
0
        private void AddTimerIndicatorToControl(Grid grid)
        {
            if (null == grid)
            {
                return;
            }
            TimerImage timer = new TimerImage();

            timer.VerticalAlignment   = System.Windows.VerticalAlignment.Top;
            timer.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            grid.Children.Add(timer);
        }