- Timestamp:
- 09/14/12 18:58:15 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 11 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.Designer.cs
r8085 r8660 49 49 this.linkLabel = new System.Windows.Forms.LinkLabel(); 50 50 this.label = new System.Windows.Forms.Label(); 51 this.linkLabelMono = new System.Windows.Forms.LinkLabel(); 51 52 this.SuspendLayout(); 52 53 // 53 54 // iconLabel 54 55 // 55 this.iconLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 56 56 this.iconLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 57 | System.Windows.Forms.AnchorStyles.Left))); 57 58 this.iconLabel.Image = global::HeuristicLab.PluginInfrastructure.Resources.Error; 58 59 this.iconLabel.ImageAlign = System.Drawing.ContentAlignment.TopLeft; 59 60 this.iconLabel.Location = new System.Drawing.Point(12, 9); 60 61 this.iconLabel.Name = "iconLabel"; 61 this.iconLabel.Size = new System.Drawing.Size(50, 98);62 this.iconLabel.Size = new System.Drawing.Size(50, 121); 62 63 this.iconLabel.TabIndex = 0; 63 64 // … … 66 67 this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 67 68 this.closeButton.DialogResult = System.Windows.Forms.DialogResult.OK; 68 this.closeButton.Location = new System.Drawing.Point(294, 81);69 this.closeButton.Location = new System.Drawing.Point(294, 104); 69 70 this.closeButton.Name = "closeButton"; 70 71 this.closeButton.Size = new System.Drawing.Size(75, 23); … … 76 77 // linkLabel 77 78 // 78 this.linkLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 79 | System.Windows.Forms.AnchorStyles.Left)80 79 this.linkLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 80 | System.Windows.Forms.AnchorStyles.Left) 81 | System.Windows.Forms.AnchorStyles.Right))); 81 82 this.linkLabel.Location = new System.Drawing.Point(68, 52); 82 83 this.linkLabel.Name = "linkLabel"; 83 this.linkLabel.Size = new System.Drawing.Size(301, 26);84 this.linkLabel.Size = new System.Drawing.Size(301, 49); 84 85 this.linkLabel.TabIndex = 2; 85 86 this.linkLabel.TabStop = true; … … 89 90 // label 90 91 // 91 this.label.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 92 92 this.label.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 93 | System.Windows.Forms.AnchorStyles.Right))); 93 94 this.label.Location = new System.Drawing.Point(68, 9); 94 95 this.label.Name = "label"; 95 96 this.label.Size = new System.Drawing.Size(301, 43); 96 97 this.label.TabIndex = 1; 97 this.label.Text = "The Microsoft .NET Framework 4 (Full Profile) is not properly installed on your s" + 98 "ystem. Please download and install it."; 98 this.label.Text = "To run HeuristicLab you need at least the Microsoft .NET Framework 4 (Full Profil" + 99 "e) or Mono version 2.11.4 or higher. Please download and install it."; 100 // 101 // linkLabelMono 102 // 103 this.linkLabelMono.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 104 | System.Windows.Forms.AnchorStyles.Left) 105 | System.Windows.Forms.AnchorStyles.Right))); 106 this.linkLabelMono.Location = new System.Drawing.Point(68, 72); 107 this.linkLabelMono.Name = "linkLabelMono"; 108 this.linkLabelMono.Size = new System.Drawing.Size(301, 16); 109 this.linkLabelMono.TabIndex = 4; 110 this.linkLabelMono.TabStop = true; 111 this.linkLabelMono.Text = "Download Mono"; 112 this.linkLabelMono.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelMono_LinkClicked); 99 113 // 100 114 // FrameworkVersionErrorDialog 101 115 // 102 116 this.AcceptButton = this.closeButton; 103 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);104 117 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 105 118 this.CancelButton = this.closeButton; 106 this.ClientSize = new System.Drawing.Size(381, 116); 119 this.ClientSize = new System.Drawing.Size(381, 139); 120 this.Controls.Add(this.linkLabelMono); 107 121 this.Controls.Add(this.label); 108 122 this.Controls.Add(this.linkLabel); … … 127 141 private System.Windows.Forms.LinkLabel linkLabel; 128 142 private System.Windows.Forms.Label label; 143 private System.Windows.Forms.LinkLabel linkLabelMono; 129 144 } 130 145 } -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.cs
r7259 r8660 8 8 * it under the terms of the GNU General Public License as published by 9 9 * the Free Software Foundation, either version 3 of the License, or 10 11 12 13 14 15 16 17 18 19 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 20 #endregion 21 21 22 22 using System; 23 using System.Reflection; 23 24 using System.Windows.Forms; 24 25 … … 26 27 public partial class FrameworkVersionErrorDialog : Form { 27 28 public static bool NET4FullProfileInstalled { 28 get { return Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full") != null; } 29 get { 30 try { 31 return Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full") != null; 32 } 33 catch (System.Security.SecurityException) { 34 return false; 35 } 36 } 37 } 38 39 public static bool MonoInstalled { 40 get { return Type.GetType("Mono.Runtime") != null; } 41 } 42 43 public static bool MonoCorrectVersionInstalled { 44 get { 45 var version = MonoVersion; 46 47 //we need at least mono version 2.11.4 48 if (version != null && version.Major >= 2 && version.Minor >= 11 && version.Build >= 4) { 49 return true; 50 } else { 51 return false; 52 } 53 } 54 } 55 56 public static Version MonoVersion { 57 get { 58 Type type = Type.GetType("Mono.Runtime"); 59 if (type != null) { 60 MethodInfo dispalayName = type.GetMethod("GetDisplayName", BindingFlags.NonPublic | BindingFlags.Static); 61 if (dispalayName != null) { 62 string versionString = dispalayName.Invoke(null, null) as string; 63 if (versionString != null) { 64 // the version string looks something like: 2.11.4 (master/99d5e54 Thu Sep 6 15:55:44 CEST 2012) 65 var subVerStrings = versionString.Split(' '); 66 if (subVerStrings.Length > 0) { 67 try { 68 return Version.Parse(subVerStrings[0]); 69 } 70 catch { } 71 } 72 } 73 } 74 } 75 return null; 76 } 29 77 } 30 78 … … 44 92 Application.Exit(); 45 93 } 94 95 private void linkLabelMono_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { 96 try { 97 System.Diagnostics.Process.Start("http://www.mono-project.org"); 98 linkLabelMono.LinkVisited = true; 99 } 100 catch (Exception) { } 101 } 46 102 } 47 103 } -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/HeuristicLab.PluginInfrastructure-3.3.csproj
r7649 r8660 102 102 </PropertyGroup> 103 103 <ItemGroup> 104 <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">105 <Private>False</Private>106 </Reference>107 104 <Reference Include="System" /> 108 <Reference Include="System.Core"> 109 <RequiredTargetFramework>3.5</RequiredTargetFramework> 110 </Reference> 105 <Reference Include="System.Core" /> 111 106 <Reference Include="System.Data" /> 112 107 <Reference Include="System.Deployment" /> 113 108 <Reference Include="System.Drawing" /> 114 <Reference Include="System.IdentityModel"> 115 <RequiredTargetFramework>3.0</RequiredTargetFramework> 116 </Reference> 117 <Reference Include="System.Runtime.Serialization"> 118 <RequiredTargetFramework>3.0</RequiredTargetFramework> 119 </Reference> 120 <Reference Include="System.ServiceModel"> 121 <RequiredTargetFramework>3.0</RequiredTargetFramework> 122 </Reference> 109 <Reference Include="System.IdentityModel" /> 110 <Reference Include="System.Runtime.Serialization" /> 111 <Reference Include="System.ServiceModel" /> 123 112 <Reference Include="System.Windows.Forms" /> 124 113 <Reference Include="System.Xml" /> 114 <Reference Include="ICSharpCode.SharpZipLib"> 115 <HintPath>ICSharpCode.SharpZipLib.dll</HintPath> 116 </Reference> 125 117 </ItemGroup> 126 118 <ItemGroup> … … 223 215 <DependentUpon>PluginView.cs</DependentUpon> 224 216 </Compile> 217 <Compile Include="ArgumentHandling\ArgumentHandling.cs" /> 218 <Compile Include="ArgumentHandling\Arguments.cs" /> 219 <Compile Include="ArgumentHandling\IArgument.cs" /> 225 220 <Compile Include="Attributes\ApplicationAttribute.cs" /> 226 221 <Compile Include="Attributes\ContactInformationAttribute.cs" /> … … 269 264 <Compile Include="Main.cs" /> 270 265 <Compile Include="Properties\AssemblyInfo.cs" /> 266 <Compile Include="TypeExtensions.cs" /> 271 267 <None Include="Advanced\DeploymentService\GenerateServiceClients.cmd" /> 272 268 <None Include="app.config"> … … 373 369 --> 374 370 <PropertyGroup> 375 <PreBuildEvent >set Path=%25Path%25;$(ProjectDir);$(SolutionDir)371 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 376 372 set ProjectDir=$(ProjectDir) 377 373 set SolutionDir=$(SolutionDir) … … 379 375 380 376 call PreBuildEvent.cmd</PreBuildEvent> 377 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 378 export ProjectDir=$(ProjectDir) 379 export SolutionDir=$(SolutionDir) 380 381 $SolutionDir/PreBuildEvent.sh 382 </PreBuildEvent> 381 383 </PropertyGroup> 382 384 </Project> -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/LightweightApplicationManager.cs
r7662 r8660 75 75 foreach (Type t in GetTypes(type)) { 76 76 object instance = null; 77 try { instance = Activator.CreateInstance(t); } catch { } 77 try { instance = Activator.CreateInstance(t); } 78 catch { } 78 79 if (instance != null) instances.Add(instance); 79 80 } … … 127 128 var assemblyTypes = assembly.GetTypes(); 128 129 129 var buildTypes = from t in assembly.GetTypes() 130 where CheckTypeCompatibility(type, t) 131 where !IsNonDiscoverableType(t) 132 where onlyInstantiable == false || 133 (!t.IsAbstract && !t.IsInterface && !t.HasElementType) 134 select BuildType(t, type); 130 var matchingTypes = from assemblyType in assembly.GetTypes() 131 let t = assemblyType.BuildType(type) 132 where t != null 133 where t.IsSubTypeOf(type) 134 where !t.IsNonDiscoverableType() 135 where onlyInstantiable == false || (!t.IsAbstract && !t.IsInterface && !t.HasElementType) 136 where includeGenericTypeDefinitions || !t.IsGenericTypeDefinition 137 select t; 135 138 136 return from t in buildTypes 137 where includeGenericTypeDefinitions || !t.IsGenericTypeDefinition 138 select t; 139 } catch (TypeLoadException) { 140 return Enumerable.Empty<Type>(); 141 } catch (ReflectionTypeLoadException) { 139 return matchingTypes; 140 } 141 catch (TypeLoadException) { 142 142 return Enumerable.Empty<Type>(); 143 143 } 144 } 145 146 private static bool IsNonDiscoverableType(Type t) { 147 return t.GetCustomAttributes(typeof(NonDiscoverableTypeAttribute), false).Any(); 148 } 149 150 private static bool CheckTypeCompatibility(Type type, Type other) { 151 if (type.IsAssignableFrom(other)) 152 return true; 153 if (type.IsGenericType && other.IsGenericType) { 154 var otherGenericArguments = other.GetGenericArguments(); 155 var typeGenericArguments = type.GetGenericArguments(); 156 157 //check type arguments count 158 if (otherGenericArguments.Length != typeGenericArguments.Length) 159 return false; 160 161 //check type arguments & constraints 162 int i = 0; 163 foreach (var genericArgument in typeGenericArguments) { 164 if (otherGenericArguments[i].IsGenericParameter) { 165 foreach (var constraint in otherGenericArguments[i].GetGenericParameterConstraints()) 166 if (!constraint.IsAssignableFrom(genericArgument)) return false; 167 } else if (genericArgument != otherGenericArguments[i]) return false; 168 i++; 169 } 170 //check types 171 try { 172 var otherGenericTypeDefinition = other.GetGenericTypeDefinition(); 173 if (type.IsAssignableFrom(otherGenericTypeDefinition.MakeGenericType(typeGenericArguments))) 174 return true; 175 } catch (Exception) { } 144 catch (ReflectionTypeLoadException) { 145 return Enumerable.Empty<Type>(); 176 146 } 177 return false;178 }179 private static Type BuildType(Type type, Type protoType) {180 if (type.IsGenericType && protoType.IsGenericType)181 return type.GetGenericTypeDefinition().MakeGenericType(protoType.GetGenericArguments());182 else183 return type;184 147 } 185 148 -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/Main.cs
r7259 r8660 34 34 /// <param name="args">Command line arguments</param> 35 35 public static void Run(string[] args) { 36 if (!FrameworkVersionErrorDialog.NET4FullProfileInstalled) { 36 if ((!FrameworkVersionErrorDialog.NET4FullProfileInstalled && !FrameworkVersionErrorDialog.MonoInstalled) 37 || (FrameworkVersionErrorDialog.MonoInstalled && !FrameworkVersionErrorDialog.MonoCorrectVersionInstalled)) { 37 38 Application.EnableVisualStyles(); 38 39 Application.SetCompatibleTextRenderingDefault(false); … … 42 43 Application.EnableVisualStyles(); 43 44 Application.SetCompatibleTextRenderingDefault(false); 44 Application.Run(new StarterForm( ));45 Application.Run(new StarterForm(args)); 45 46 } 46 47 catch (Exception ex) { -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/Properties/AssemblyInfo.cs.frame
r7259 r8660 56 56 // 57 57 [assembly: AssemblyVersion("3.3.0.0")] 58 [assembly: AssemblyFileVersion("3.3. 6.$WCREV$")]58 [assembly: AssemblyFileVersion("3.3.7.$WCREV$")] -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/Resources.resx
r6413 r8660 123 123 </data> 124 124 <data name="ArrowUp" type="System.Resources.ResXFileRef, System.Windows.Forms"> 125 <value>Resources\ vs2008imagelibrary_commonelements_objects_arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>125 <value>Resources\VS2008ImageLibrary_CommonElements_Objects_Arrow_Up.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> 126 126 </data> 127 127 <data name="Assembly" type="System.Resources.ResXFileRef, System.Windows.Forms"> 128 <value>Resources\ vs2008imagelibrary_objects_assembly.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>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 130 <data name="Document" type="System.Resources.ResXFileRef, System.Windows.Forms"> … … 150 150 </data> 151 151 <data name="Install" type="System.Resources.ResXFileRef, System.Windows.Forms"> 152 <value>Resources\ vs2008imagelibrary_objects_install.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>152 <value>Resources\VS2008ImageLibrary_Objects_Install.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> 153 153 </data> 154 154 <data name="Internet" type="System.Resources.ResXFileRef, System.Windows.Forms"> … … 195 195 </data> 196 196 <data name="UpdateAvailable" type="System.Resources.ResXFileRef, System.Windows.Forms"> 197 <value> resources\updateavailable.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>197 <value>Resources\UpdateAvailable.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> 198 198 </data> 199 199 </root> -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/SandboxApplicationManager.cs
r7586 r8660 261 261 /// <returns>Enumerable of the discovered types.</returns> 262 262 private static IEnumerable<Type> GetTypes(Type type, Assembly assembly, bool onlyInstantiable, bool includeGenericTypeDefinitions) { 263 var buildTypes = from t in assembly.GetTypes() 264 where CheckTypeCompatibility(type, t) 265 where !IsNonDiscoverableType(t) 266 where onlyInstantiable == false || 267 (!t.IsAbstract && !t.IsInterface && !t.HasElementType) 268 select BuildType(t, type); 269 270 return from t in buildTypes 271 where includeGenericTypeDefinitions || !t.IsGenericTypeDefinition 272 select t; 273 } 274 275 276 private static bool IsNonDiscoverableType(Type t) { 277 return t.GetCustomAttributes(typeof(NonDiscoverableTypeAttribute), false).Any(); 278 } 279 280 private static bool CheckTypeCompatibility(Type type, Type other) { 281 if (type.IsAssignableFrom(other)) 282 return true; 283 if (type.IsGenericType && other.IsGenericType) { 284 var otherGenericArguments = other.GetGenericArguments(); 285 var typeGenericArguments = type.GetGenericArguments(); 286 287 //check type arguments count 288 if (otherGenericArguments.Length != typeGenericArguments.Length) 289 return false; 290 291 //check type arguments & constraints 292 int i = 0; 293 foreach (var genericArgument in typeGenericArguments) { 294 if (otherGenericArguments[i].IsGenericParameter) { 295 foreach (var constraint in otherGenericArguments[i].GetGenericParameterConstraints()) 296 if (!constraint.IsAssignableFrom(genericArgument)) return false; 297 } else if (genericArgument != otherGenericArguments[i]) return false; 298 i++; 299 } 300 //check types 301 try { 302 var otherGenericTypeDefinition = other.GetGenericTypeDefinition(); 303 if (type.IsAssignableFrom(otherGenericTypeDefinition.MakeGenericType(typeGenericArguments))) 304 return true; 305 } 306 catch (Exception) { } 307 } 308 return false; 309 } 310 private static Type BuildType(Type type, Type protoType) { 311 if (type.IsGenericType && protoType.IsGenericType) 312 return type.GetGenericTypeDefinition().MakeGenericType(protoType.GetGenericArguments()); 313 else 314 return type; 263 var matchingTypes = from assemblyType in assembly.GetTypes() 264 let t = assemblyType.BuildType(type) 265 where t != null 266 where t.IsSubTypeOf(type) 267 where !t.IsNonDiscoverableType() 268 where onlyInstantiable == false || (!t.IsAbstract && !t.IsInterface && !t.HasElementType) 269 where includeGenericTypeDefinitions || !t.IsGenericTypeDefinition 270 select t; 271 272 return matchingTypes; 315 273 } 316 274 -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/Starter/StarterForm.Designer.cs
r8085 r8660 181 181 this.Name = "StarterForm"; 182 182 this.Text = "HeuristicLab Starter"; 183 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); 183 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.StarterForm_FormClosing); 184 this.Shown += new System.EventHandler(this.StarterForm_Shown); 184 185 this.ResumeLayout(false); 185 186 -
branches/GP-MoveOperators/HeuristicLab.PluginInfrastructure/3.3/Starter/StarterForm.cs
r7259 r8660 26 26 using System.Linq; 27 27 using System.Threading; 28 using System.Threading.Tasks; 28 29 using System.Windows.Forms; 29 30 using HeuristicLab.PluginInfrastructure.Advanced; 30 31 using HeuristicLab.PluginInfrastructure.Manager; 31 using System.Threading.Tasks;32 32 33 33 namespace HeuristicLab.PluginInfrastructure.Starter { … … 46 46 private SplashScreen splashScreen; 47 47 private bool updatesAvailable = false; 48 private string[] arguments; 49 48 50 /// <summary> 49 51 /// Initializes an instance of the starter form. … … 127 129 } 128 130 131 /// <summary> 132 /// Creates a new StarterForm and passes the arguments in <paramref name="args"/>. 133 /// </summary> 134 /// <param name="args">The arguments that should be processed</param> 135 public StarterForm(string[] args) 136 : this() { 137 this.arguments = args; 138 } 139 140 private void StarterForm_Shown(object sender, EventArgs e) { 141 foreach (var argument in ArgumentHandling.GetArguments(arguments)) { 142 if (argument is StartArgument) { 143 var appDesc = (from desc in pluginManager.Applications 144 where desc.Name == argument.Value 145 select desc).SingleOrDefault(); 146 if (appDesc != null) { 147 StartApplication(appDesc); 148 } else { 149 MessageBox.Show("Cannot start application " + argument.Value + ".", 150 "HeuristicLab", 151 MessageBoxButtons.OK, 152 MessageBoxIcon.Warning); 153 } 154 } 155 } 156 } 157 129 158 private void applicationsListView_ItemActivate(object sender, EventArgs e) { 130 159 if (applicationsListView.SelectedItems.Count > 0) { … … 259 288 } 260 289 261 private void MainForm_FormClosing(object sender, FormClosingEventArgs e) {290 private void StarterForm_FormClosing(object sender, FormClosingEventArgs e) { 262 291 splashScreen.Close(); 263 292 abortRequested = true;
Note: See TracChangeset
for help on using the changeset viewer.