- Timestamp:
- 10/18/12 14:59:21 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs
r8818 r8821 68 68 } 69 69 70 private IEnumerable<ICommandLineArgument> arguments;71 public IEnumerable<ICommandLineArgument> Arguments {72 get { return arguments; }73 set {74 if (arguments == null) arguments = value;75 else throw new InvalidOperationException("Arguments can only be set once and were already set.");76 }77 }78 79 70 public override Cursor Cursor { 80 71 get { return base.Cursor; } -
trunk/sources/HeuristicLab.MainForm/3.3/Interfaces/IMainForm.cs
r8818 r8821 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Common; 25 using HeuristicLab.PluginInfrastructure;26 25 27 26 namespace HeuristicLab.MainForm { 28 27 public interface IMainForm { 29 28 string Title { get; set; } 30 IEnumerable<ICommandLineArgument> Arguments { get; set; }31 29 32 30 IView ActiveView { get; } -
trunk/sources/HeuristicLab.Optimizer/3.3/Plugin.cs.frame
r8818 r8821 65 65 66 66 mainForm.ShowContentInViewHost = true; 67 mainForm.Arguments = args; 68 var filesToOpen = mainForm.Arguments.OfType<OpenArgument>().Select(x => x.Value); 67 var filesToOpen = args.OfType<OpenArgument>().Select(x => x.Value); 69 68 mainForm.Load += (sender, eventArgs) => FileManager.OpenFiles(filesToOpen); 70 69 Application.Run(mainForm);
Note: See TracChangeset
for help on using the changeset viewer.