Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8821


Ignore:
Timestamp:
10/18/12 14:59:21 (12 years ago)
Author:
jkarder
Message:

#1929: reverted the changes addressed by mkommend in comment:29:ticket:1926

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs

    r8818 r8821  
    6868    }
    6969
    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 
    7970    public override Cursor Cursor {
    8071      get { return base.Cursor; }
  • trunk/sources/HeuristicLab.MainForm/3.3/Interfaces/IMainForm.cs

    r8818 r8821  
    2323using System.Collections.Generic;
    2424using HeuristicLab.Common;
    25 using HeuristicLab.PluginInfrastructure;
    2625
    2726namespace HeuristicLab.MainForm {
    2827  public interface IMainForm {
    2928    string Title { get; set; }
    30     IEnumerable<ICommandLineArgument> Arguments { get; set; }
    3129
    3230    IView ActiveView { get; }
  • trunk/sources/HeuristicLab.Optimizer/3.3/Plugin.cs.frame

    r8818 r8821  
    6565
    6666        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);
    6968        mainForm.Load += (sender, eventArgs) => FileManager.OpenFiles(filesToOpen);
    7069        Application.Run(mainForm);
Note: See TracChangeset for help on using the changeset viewer.