private void AboutBox_Load(object sender, EventArgs e) { Bitmap image = Lemmings.GetPictureBoxImage(DateTime.Now); if (image != null) { logoPictureBox.Image = image; } thanksTimer_Tick(null, null); thanksTimer.Enabled = true; thanksTimer.Interval = 500; thanksTimer.Start(); }
public Dashboard() { InitializeComponent(); Translate(); Bitmap image = Lemmings.GetPictureBoxImage(DateTime.Now); if (image != null) { pictureBox1.Image = image; } // Do this at runtime, because it is difficult to keep consistent at design time. pictureBox1.BringToFront(); pictureBox1.Location = new Point(Width - pictureBox1.Image.Width - 10, Height - pictureBox1.Image.Height - 10); Load += Dashboard_Load; }
public Dashboard() { InitializeComponent(); Translate(); RecentRepositories.DashboardItemClick += dashboardItem_Click; RecentRepositories.RepositoryRemoved += RecentRepositories_RepositoryRemoved; RecentRepositories.DisableContextMenu(); RecentRepositories.DashboardCategoryChanged += dashboardCategory_DashboardCategoryChanged; ////Repositories.RepositoryCategories.ListChanged += new ListChangedEventHandler(RepositoryCategories_ListChanged); Bitmap image = Lemmings.GetPictureBoxImage(DateTime.Now); if (image != null) { pictureBox1.Image = image; } // Do this at runtime, because it is difficult to keep consistent at design time. pictureBox1.BringToFront(); pictureBox1.Location = new Point(Width - pictureBox1.Image.Width - 10, Height - pictureBox1.Image.Height - 10); Load += Dashboard_Load; }