Changeset 3777 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 05/11/10 19:06:02 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Resources.Designer.cs
r3761 r3777 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:2.0.50727.4 9274 // Runtime Version:2.0.50727.4200 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 82 82 } 83 83 84 internal static System.Drawing.Bitmap Delete {85 get {86 object obj = ResourceManager.GetObject("Delete", resourceCulture);87 return ((System.Drawing.Bitmap)(obj));88 }89 }90 91 84 internal static System.Drawing.Bitmap Document { 92 85 get { -
trunk/sources/HeuristicLab.PluginInfrastructure/Resources.resx
r3761 r3777 128 128 <value>Resources\vs2008imagelibrary_objects_assembly.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> 129 129 </data> 130 <data name="Delete" type="System.Resources.ResXFileRef, System.Windows.Forms">131 <value>Resources\VS2008ImageLibrary_Actions_Delete.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>132 </data>133 130 <data name="Document" type="System.Resources.ResXFileRef, System.Windows.Forms"> 134 131 <value>Resources\VS2008ImageLibrary_Objects_Document.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/AboutDialog.Designer.cs
r3761 r3777 125 125 this.pictureBox.Location = new System.Drawing.Point(12, 12); 126 126 this.pictureBox.Name = "pictureBox"; 127 this.pictureBox.Size = new System.Drawing.Size(16 5, 183);128 this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode. Zoom;127 this.pictureBox.Size = new System.Drawing.Size(160, 180); 128 this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; 129 129 this.pictureBox.TabIndex = 2; 130 130 this.pictureBox.TabStop = false; -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/SplashScreen.Designer.cs
r3761 r3777 48 48 /// </summary> 49 49 private void InitializeComponent() { 50 this.panel = new System.Windows.Forms.Panel();51 this.closeButton = new System.Windows.Forms.Button();52 this.companyLabel = new System.Windows.Forms.Label();53 this.userNameLabel = new System.Windows.Forms.Label();54 this.licensedToLabel = new System.Windows.Forms.Label();55 this.titleLabel = new System.Windows.Forms.Label();56 50 this.versionLabel = new System.Windows.Forms.Label(); 57 51 this.infoLabel = new System.Windows.Forms.Label(); 58 52 this.copyrightLabel = new System.Windows.Forms.Label(); 59 53 this.pictureBox = new System.Windows.Forms.PictureBox(); 60 this.panel.SuspendLayout();61 54 ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit(); 62 55 this.SuspendLayout(); 63 56 // 64 // panel65 //66 this.panel.BackColor = System.Drawing.SystemColors.Window;67 this.panel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;68 this.panel.Controls.Add(this.closeButton);69 this.panel.Controls.Add(this.companyLabel);70 this.panel.Controls.Add(this.userNameLabel);71 this.panel.Controls.Add(this.licensedToLabel);72 this.panel.Controls.Add(this.titleLabel);73 this.panel.Controls.Add(this.versionLabel);74 this.panel.Controls.Add(this.infoLabel);75 this.panel.Controls.Add(this.copyrightLabel);76 this.panel.Controls.Add(this.pictureBox);77 this.panel.Dock = System.Windows.Forms.DockStyle.Fill;78 this.panel.Location = new System.Drawing.Point(0, 0);79 this.panel.Name = "panel";80 this.panel.Size = new System.Drawing.Size(625, 161);81 this.panel.TabIndex = 0;82 //83 // closeButton84 //85 this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));86 this.closeButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;87 this.closeButton.FlatAppearance.BorderColor = System.Drawing.Color.White;88 this.closeButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Gray;89 this.closeButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.White;90 this.closeButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;91 this.closeButton.ForeColor = System.Drawing.Color.White;92 this.closeButton.ImageIndex = 0;93 this.closeButton.Location = new System.Drawing.Point(604, 3);94 this.closeButton.Name = "closeButton";95 this.closeButton.Size = new System.Drawing.Size(16, 16);96 this.closeButton.TabIndex = 7;97 this.closeButton.UseVisualStyleBackColor = true;98 this.closeButton.Click += new System.EventHandler(this.closeButton_Click);99 //100 // companyLabel101 //102 this.companyLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)103 | System.Windows.Forms.AnchorStyles.Right)));104 this.companyLabel.Location = new System.Drawing.Point(248, 88);105 this.companyLabel.Name = "companyLabel";106 this.companyLabel.Size = new System.Drawing.Size(364, 16);107 this.companyLabel.TabIndex = 5;108 this.companyLabel.Text = "Company";109 this.companyLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;110 //111 // userNameLabel112 //113 this.userNameLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)114 | System.Windows.Forms.AnchorStyles.Right)));115 this.userNameLabel.BackColor = System.Drawing.SystemColors.Window;116 this.userNameLabel.Location = new System.Drawing.Point(248, 72);117 this.userNameLabel.Name = "userNameLabel";118 this.userNameLabel.Size = new System.Drawing.Size(364, 16);119 this.userNameLabel.TabIndex = 4;120 this.userNameLabel.Text = "User";121 this.userNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;122 //123 // licensedToLabel124 //125 this.licensedToLabel.Location = new System.Drawing.Point(170, 72);126 this.licensedToLabel.Name = "licensedToLabel";127 this.licensedToLabel.Size = new System.Drawing.Size(72, 16);128 this.licensedToLabel.TabIndex = 3;129 this.licensedToLabel.Text = "Licensed to:";130 this.licensedToLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;131 //132 // titleLabel133 //134 this.titleLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)135 | System.Windows.Forms.AnchorStyles.Right)));136 this.titleLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));137 this.titleLabel.Location = new System.Drawing.Point(170, 8);138 this.titleLabel.Name = "titleLabel";139 this.titleLabel.Size = new System.Drawing.Size(442, 16);140 this.titleLabel.TabIndex = 0;141 this.titleLabel.Text = "Title";142 this.titleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;143 //144 57 // versionLabel 145 58 // 146 this.versionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 147 | System.Windows.Forms.AnchorStyles.Right))); 148 this.versionLabel.Location = new System.Drawing.Point(170, 24); 59 this.versionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 60 this.versionLabel.Location = new System.Drawing.Point(500, 156); 149 61 this.versionLabel.Name = "versionLabel"; 150 this.versionLabel.Size = new System.Drawing.Size( 442, 16);62 this.versionLabel.Size = new System.Drawing.Size(186, 16); 151 63 this.versionLabel.TabIndex = 1; 152 64 this.versionLabel.Text = "Version "; 153 this.versionLabel.TextAlign = System.Drawing.ContentAlignment.Middle Left;65 this.versionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 154 66 // 155 67 // infoLabel 156 68 // 157 this.infoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles. Bottom| System.Windows.Forms.AnchorStyles.Left)69 this.infoLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 158 70 | System.Windows.Forms.AnchorStyles.Right))); 159 71 this.infoLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 160 this.infoLabel.ForeColor = System.Drawing. SystemColors.GradientActiveCaption;161 this.infoLabel.Location = new System.Drawing.Point( 170, 104);72 this.infoLabel.ForeColor = System.Drawing.Color.DarkOrange; 73 this.infoLabel.Location = new System.Drawing.Point(0, 123); 162 74 this.infoLabel.Name = "infoLabel"; 163 this.infoLabel.Size = new System.Drawing.Size( 442, 47);75 this.infoLabel.Size = new System.Drawing.Size(698, 30); 164 76 this.infoLabel.TabIndex = 6; 165 77 this.infoLabel.Text = "Startup Information"; 166 this.infoLabel.TextAlign = System.Drawing.ContentAlignment.Middle Left;78 this.infoLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 167 79 // 168 80 // copyrightLabel 169 81 // 170 this.copyrightLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 171 | System.Windows.Forms.AnchorStyles.Right))); 172 this.copyrightLabel.Location = new System.Drawing.Point(170, 56); 82 this.copyrightLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 83 this.copyrightLabel.Location = new System.Drawing.Point(12, 156); 173 84 this.copyrightLabel.Name = "copyrightLabel"; 174 this.copyrightLabel.Size = new System.Drawing.Size( 442, 16);85 this.copyrightLabel.Size = new System.Drawing.Size(186, 16); 175 86 this.copyrightLabel.TabIndex = 2; 176 87 this.copyrightLabel.Text = "Copyright"; … … 179 90 // pictureBox 180 91 // 181 this.pictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles. Bottom)182 | System.Windows.Forms.AnchorStyles. Left)));183 this.pictureBox.Image = global::HeuristicLab.PluginInfrastructure.Resources.HeuristicLab Logo;184 this.pictureBox.Location = new System.Drawing.Point( -1, -1);92 this.pictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 93 | System.Windows.Forms.AnchorStyles.Right))); 94 this.pictureBox.Image = global::HeuristicLab.PluginInfrastructure.Resources.HeuristicLabBanner; 95 this.pictureBox.Location = new System.Drawing.Point(0, 0); 185 96 this.pictureBox.Name = "pictureBox"; 186 this.pictureBox.Size = new System.Drawing.Size( 165, 161);187 this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode. Zoom;97 this.pictureBox.Size = new System.Drawing.Size(698, 120); 98 this.pictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; 188 99 this.pictureBox.TabIndex = 0; 189 100 this.pictureBox.TabStop = false; … … 193 104 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 194 105 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 195 this.ClientSize = new System.Drawing.Size(625, 161); 106 this.BackColor = System.Drawing.Color.White; 107 this.ClientSize = new System.Drawing.Size(698, 175); 196 108 this.ControlBox = false; 197 this.Controls.Add(this.panel); 198 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 109 this.Controls.Add(this.infoLabel); 110 this.Controls.Add(this.pictureBox); 111 this.Controls.Add(this.versionLabel); 112 this.Controls.Add(this.copyrightLabel); 113 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; 199 114 this.MaximizeBox = false; 200 115 this.MinimizeBox = false; … … 203 118 this.ShowInTaskbar = false; 204 119 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 205 this.panel.ResumeLayout(false);206 120 ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit(); 207 121 this.ResumeLayout(false); … … 211 125 #endregion 212 126 213 private System.Windows.Forms.Panel panel;214 127 private System.Windows.Forms.PictureBox pictureBox; 215 private System.Windows.Forms.Label companyLabel;216 private System.Windows.Forms.Label userNameLabel;217 private System.Windows.Forms.Label licensedToLabel;218 private System.Windows.Forms.Label titleLabel;219 128 private System.Windows.Forms.Label versionLabel; 220 129 private System.Windows.Forms.Label copyrightLabel; 221 130 private System.Windows.Forms.Label infoLabel; 222 private System.Windows.Forms.Button closeButton;223 131 } 224 132 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/SplashScreen.cs
r3752 r3777 29 29 using HeuristicLab.PluginInfrastructure; 30 30 using HeuristicLab.PluginInfrastructure.Manager; 31 using System.Diagnostics; 31 32 32 33 namespace HeuristicLab.PluginInfrastructure.Starter { … … 36 37 private int initialInterval; 37 38 private PluginManager manager; 38 private bool fadeOutForced; 39 39 40 internal SplashScreen() { 40 41 InitializeComponent(); … … 46 47 this.manager = manager; 47 48 48 closeButton.Image = HeuristicLab.PluginInfrastructure.Resources.Delete;49 49 manager.ApplicationStarted += new EventHandler<PluginInfrastructureEventArgs>(manager_ApplicationStarted); 50 50 manager.ApplicationStarting += new EventHandler<PluginInfrastructureEventArgs>(manager_ApplicationStarting); … … 54 54 manager.PluginUnloaded += new EventHandler<PluginInfrastructureEventArgs>(manager_PluginUnloaded); 55 55 56 titleLabel.Text = Application.ProductName;57 versionLabel.Text = "Version " + Application.ProductVersion;56 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 57 versionLabel.Text = "Version " + pluginInfrastructureVersion.FileVersion; 58 58 infoLabel.Text = ""; 59 59 60 60 var attr = (AssemblyCopyrightAttribute)this.GetType().Assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false).Single(); 61 61 copyrightLabel.Text = "Copyright " + attr.Copyright; 62 63 string user = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.User;64 string company = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.Organization;65 66 userNameLabel.Text = string.IsNullOrEmpty(user) ? "-" : user;67 companyLabel.Text = string.IsNullOrEmpty(company) ? "-" : company;68 62 69 63 fadeTimer = new Timer(); … … 101 95 Opacity = 1; 102 96 infoLabel.Text = initialText; 103 fadeOutForced = false;104 97 ResetFadeTimer(); 105 98 Show(); … … 112 105 Opacity = 1; 113 106 infoLabel.Text = initialText; 114 fadeOutForced = false;115 107 ResetFadeTimer(); 116 108 Show(owner); … … 137 129 Invoke((Action<string>)UpdateMessage, msg); 138 130 } else { 139 // when the user forced a fade-out (by closing the splashscreen) 140 // don't reset the fadeTimer 141 if (!fadeOutForced) { 142 ResetFadeTimer(); 143 } 131 ResetFadeTimer(); 144 132 SetInfoText(msg); 145 133 Application.DoEvents(); // force immediate update of splash screen control … … 165 153 } 166 154 } 167 168 // force fade out169 private void closeButton_Click(object sender, EventArgs e) {170 fadeOutForced = true;171 FadeOut();172 }173 155 } 174 156 }
Note: See TracChangeset
for help on using the changeset viewer.