コード例 #1
0
        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;
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: FormSplash.cs プロジェクト: tekmaven/gitextensions
        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;
            }
        }
コード例 #4
0
        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;
        }
コード例 #5
0
ファイル: Dashboard.cs プロジェクト: hiroponz/gitextensions
        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;
        }