private FormSplash() { ShowInTaskbar = false; InitializeComponent(); SetFont(); _NO_TRANSLATE_programTitle.Font = new Font(SystemFonts.MessageBoxFont, FontStyle.Bold); var image = Lemmings.GetPictureBoxImage(DateTime.Now); pictureBox1.Image = image ?? Properties.Resources.git_extensions_logo_final_128; }
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(); }
private FormSplash() { ShowInTaskbar = false; InitializeComponent(); SetFont(); _NO_TRANSLATE_programTitle.Font = new Font(SystemFonts.MessageBoxFont, FontStyle.Bold); var image = Lemmings.GetPictureBoxImage(DateTime.Now); if (image != null) { pictureBox1.Image = image; } }
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; } 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(this.Width - pictureBox1.Image.Width - 10, this.Height - pictureBox1.Image.Height - 10); Load += Dashboard_Load; }