Changeset 7665 for branches/ProblemInstancesRegressionAndClassification
- Timestamp:
- 03/27/12 13:31:44 (13 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification
- Files:
-
- 1 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification ¶
- Property svn:ignore
-
TabularUnified
old new 3 3 protoc.exe 4 4 ProtoGen.exe 5 bin
-
- Property svn:ignore
-
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab 3.3.sln ¶
r7664 r7665 20 20 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Optimization.Views-3.3", "HeuristicLab.Optimization.Views\3.3\HeuristicLab.Optimization.Views-3.3.csproj", "{662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}" 21 21 EndProject 22 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.Instances.Views-3.4", "HeuristicLab.Problems.Instances.Views\3.4\HeuristicLab.Problems.Instances.Views-3.4.csproj", "{ 1BFDCC58-E228-46DE-A36E-8503194B434D}"22 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.Instances.Views-3.4", "HeuristicLab.Problems.Instances.Views\3.4\HeuristicLab.Problems.Instances.Views-3.4.csproj", "{B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}" 23 23 EndProject 24 24 Global … … 122 122 {662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}.Release|x86.ActiveCfg = Release|x86 123 123 {662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}.Release|x86.Build.0 = Release|x86 124 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Debug|Any CPU.ActiveCfg = Debug|x86 125 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 126 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Debug|Mixed Platforms.Build.0 = Debug|x86 127 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Debug|x64.ActiveCfg = Debug|x86 128 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Debug|x86.ActiveCfg = Debug|x86 129 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Debug|x86.Build.0 = Debug|x86 130 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Release|Any CPU.ActiveCfg = Release|Any CPU 131 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Release|Any CPU.Build.0 = Release|Any CPU 132 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Release|Mixed Platforms.ActiveCfg = Release|x86 133 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Release|Mixed Platforms.Build.0 = Release|x86 134 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Release|x64.ActiveCfg = Release|x86 135 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Release|x86.ActiveCfg = Release|x86 136 {1BFDCC58-E228-46DE-A36E-8503194B434D}.Release|x86.Build.0 = Release|x86 124 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 125 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Debug|Any CPU.Build.0 = Debug|Any CPU 126 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU 127 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU 128 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Debug|x64.ActiveCfg = Debug|Any CPU 129 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Debug|x86.ActiveCfg = Debug|Any CPU 130 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Release|Any CPU.ActiveCfg = Release|Any CPU 131 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Release|Any CPU.Build.0 = Release|Any CPU 132 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU 133 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Release|Mixed Platforms.Build.0 = Release|Any CPU 134 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Release|x64.ActiveCfg = Release|Any CPU 135 {B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}.Release|x86.ActiveCfg = Release|Any CPU 137 136 EndGlobalSection 138 137 GlobalSection(SolutionProperties) = preSolution -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj ¶
r7664 r7665 325 325 <ItemGroup> 326 326 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances.Views\3.4\HeuristicLab.Problems.Instances.Views-3.4.csproj"> 327 <Project>{ 1BFDCC58-E228-46DE-A36E-8503194B434D}</Project>327 <Project>{B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}</Project> 328 328 <Name>HeuristicLab.Problems.Instances.Views-3.4</Name> 329 329 </ProjectReference> -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/ProblemInstanceProviderView.cs ¶
r7664 r7665 32 32 namespace HeuristicLab.Optimization.Views { 33 33 [View("ProblemInstanceProviderView")] 34 [Content(typeof(IProblemInstanceProvider<>), IsDefaultView = true)]34 [Content(typeof(IProblemInstanceProvider<>), IsDefaultView = false)] 35 35 public partial class ProblemInstanceProviderView<T> : AsynchronousContentView { 36 36 -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/ProblemView.Designer.cs ¶
r7664 r7665 76 76 // problemInstanceSplitContainer 77 77 // 78 this.problemInstanceSplitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 79 | System.Windows.Forms.AnchorStyles.Left)80 78 this.problemInstanceSplitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 79 | System.Windows.Forms.AnchorStyles.Left) 80 | System.Windows.Forms.AnchorStyles.Right))); 81 81 this.problemInstanceSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; 82 82 this.problemInstanceSplitContainer.IsSplitterFixed = true; … … 102 102 // problemInstanceConsumerView 103 103 // 104 this.problemInstanceConsumerView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 105 | System.Windows.Forms.AnchorStyles.Left)106 104 this.problemInstanceConsumerView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 105 | System.Windows.Forms.AnchorStyles.Left) 106 | System.Windows.Forms.AnchorStyles.Right))); 107 107 this.problemInstanceConsumerView.Caption = "ProblemInstanceProviderView"; 108 108 this.problemInstanceConsumerView.Content = null; 109 this.problemInstanceConsumerView.Location = new System.Drawing.Point(0, 0);109 this.problemInstanceConsumerView.Location = new System.Drawing.Point(0, 1); 110 110 this.problemInstanceConsumerView.Name = "problemInstanceConsumerView"; 111 111 this.problemInstanceConsumerView.ReadOnly = false; 112 this.problemInstanceConsumerView.Size = new System.Drawing.Size(511, 2 5);112 this.problemInstanceConsumerView.Size = new System.Drawing.Size(511, 23); 113 113 this.problemInstanceConsumerView.TabIndex = 0; 114 114 // -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Optimization.Views/3.3/ProblemView.cs ¶
r7664 r7665 20 20 #endregion 21 21 22 using System.Linq; 22 23 using System.Windows.Forms; 23 24 using HeuristicLab.Core.Views; … … 46 47 protected override void OnContentChanged() { 47 48 base.OnContentChanged(); 48 //Check if IProblem implements IProblemInstancesConsumer interface 49 problemInstanceConsumerView.Content = (IProblemInstanceConsumer)Content; 50 problemInstanceSplitContainer.Panel1Collapsed = !problemInstanceConsumerView.ContainsProviders(); 49 if (Content != null && CheckForIProblemInstanceConsumer(Content)) { 50 problemInstanceConsumerView.Content = (IProblemInstanceConsumer)Content; 51 problemInstanceSplitContainer.Panel1Collapsed = !problemInstanceConsumerView.ContainsProviders(); 52 } else { 53 problemInstanceSplitContainer.Panel1Collapsed = true; 54 } 51 55 SetEnabledStateOfControls(); 52 56 } 53 57 54 protected override void SetEnabledStateOfControls() {55 base.SetEnabledStateOfControls();58 protected bool CheckForIProblemInstanceConsumer(IProblem Content) { 59 return Content.GetType().GetInterfaces().Any(x => x.IsInterface && x.Equals(typeof(IProblemInstanceConsumer))); 56 60 } 57 61 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.DataAnalysis.Views/3.4 ¶
- Property svn:ignore
-
TabularUnified
old new 5 5 *.vs10x 6 6 Plugin.cs 7 Service References
-
- Property svn:ignore
-
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression.Views/3.4/HeuristicLab.Problems.Instances.Regression.Views-3.4.csproj ¶
r7664 r7665 76 76 </ItemGroup> 77 77 <ItemGroup> 78 <ProjectReference Include="..\..\HeuristicLab.Optimization.Views\3.3\HeuristicLab.Optimization.Views-3.3.csproj">79 <Project>{662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}</Project>80 <Name>HeuristicLab.Optimization.Views-3.3</Name>81 </ProjectReference>82 78 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances.Regression\3.4\HeuristicLab.Problems.Instances.Regression-3.4.csproj"> 83 79 <Project>{26BF13E1-C8B2-4ACE-862D-EBFD360116B3}</Project> 84 80 <Name>HeuristicLab.Problems.Instances.Regression-3.4</Name> 81 </ProjectReference> 82 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances.Views\3.4\HeuristicLab.Problems.Instances.Views-3.4.csproj"> 83 <Project>{B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}</Project> 84 <Name>HeuristicLab.Problems.Instances.Views-3.4</Name> 85 85 </ProjectReference> 86 86 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression.Views/3.4/Properties/AssemblyInfo.cs ¶
r7664 r7665 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.4.0.0")] 57 [assembly: AssemblyFileVersion("3.4.0.76 10")]57 [assembly: AssemblyFileVersion("3.4.0.7664")] -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression.Views/3.4/RegressionInstanceProviderView.cs ¶
r7603 r7665 22 22 using System.Windows.Forms; 23 23 using HeuristicLab.MainForm; 24 using HeuristicLab. Optimization.Views;24 using HeuristicLab.Problems.Instances.Views; 25 25 26 26 namespace HeuristicLab.Problems.Instances.Regression.Views { -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Properties/AssemblyInfo.cs ¶
r7664 r7665 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.4.0.0")] 57 [assembly: AssemblyFileVersion("3.4.0.76 10")]57 [assembly: AssemblyFileVersion("3.4.0.7664")] -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4 ¶
-
Property
svn:ignore
set to
bin
HeuristicLab.Problems.Instances.Views-3.4.csproj.user
obj
-
Property
svn:ignore
set to
-
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/HeuristicLab.Problems.Instances.Views-3.4.csproj ¶
r7664 r7665 3 3 <PropertyGroup> 4 4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 5 <Platform Condition=" '$(Platform)' == '' "> x86</Platform>5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 6 6 <ProductVersion>8.0.30703</ProductVersion> 7 7 <SchemaVersion>2.0</SchemaVersion> 8 <ProjectGuid>{ 1BFDCC58-E228-46DE-A36E-8503194B434D}</ProjectGuid>8 <ProjectGuid>{B1BA398F-953F-4C3A-B07B-1E5E17A27DD9}</ProjectGuid> 9 9 <OutputType>Library</OutputType> 10 10 <AppDesignerFolder>Properties</AppDesignerFolder> … … 12 12 <AssemblyName>HeuristicLab.Problems.Instances.Views-3.4</AssemblyName> 13 13 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 14 <TargetFrameworkProfile>15 </TargetFrameworkProfile>16 14 <FileAlignment>512</FileAlignment> 17 15 </PropertyGroup> 18 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> 19 <PlatformTarget>x86</PlatformTarget> 16 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 20 17 <DebugSymbols>true</DebugSymbols> 21 18 <DebugType>full</DebugType> … … 26 23 <WarningLevel>4</WarningLevel> 27 24 </PropertyGroup> 28 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> 29 <PlatformTarget>x86</PlatformTarget> 25 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 30 26 <DebugType>pdbonly</DebugType> 31 27 <Optimize>true</Optimize> … … 41 37 <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile> 42 38 </PropertyGroup> 43 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">44 <PlatformTarget>AnyCPU</PlatformTarget>45 <OutputPath>bin\Debug\</OutputPath>46 </PropertyGroup>47 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">48 <PlatformTarget>AnyCPU</PlatformTarget>49 <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>50 </PropertyGroup>51 <PropertyGroup>52 <StartupObject />53 </PropertyGroup>54 39 <ItemGroup> 55 40 <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 56 <Reference Include="HeuristicLab.Common.Resources-3.3"> 57 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Common.Resources-3.3.dll</HintPath> 58 </Reference> 59 <Reference Include="HeuristicLab.MainForm-3.3"> 60 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.MainForm-3.3.dll</HintPath> 61 </Reference> 62 <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3"> 63 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.MainForm.WindowsForms-3.3.dll</HintPath> 64 </Reference> 65 <Reference Include="HeuristicLab.Optimization-3.3"> 66 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Optimization-3.3.dll</HintPath> 67 </Reference> 68 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 69 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 70 </Reference> 41 <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 42 <Reference Include="HeuristicLab.MainForm-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 43 <Reference Include="HeuristicLab.MainForm.WindowsForms-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 44 <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" /> 71 45 <Reference Include="System" /> 72 46 <Reference Include="System.Core" /> 47 <Reference Include="System.Drawing" /> 48 <Reference Include="System.Windows.Forms" /> 73 49 <Reference Include="System.Xml.Linq" /> 74 50 <Reference Include="System.Data.DataSetExtensions" /> 75 51 <Reference Include="Microsoft.CSharp" /> 76 52 <Reference Include="System.Data" /> 77 <Reference Include="System.Drawing" />78 <Reference Include="System.Windows.Forms" />79 53 <Reference Include="System.Xml" /> 80 54 </ItemGroup> 81 55 <ItemGroup> 56 <Compile Include="Plugin.cs" /> 82 57 <Compile Include="ProblemInstanceConsumerView.cs"> 83 58 <SubType>UserControl</SubType> … … 93 68 </Compile> 94 69 <Compile Include="Properties\AssemblyInfo.cs" /> 70 </ItemGroup> 71 <ItemGroup> 95 72 <None Include="HeuristicLab.snk" /> 96 73 <None Include="Plugin.cs.frame" /> 97 <None Include="Properties\AssemblyInfo.cs.frame" />98 74 </ItemGroup> 99 75 <ItemGroup> -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/Plugin.cs.frame ¶
r7664 r7665 26 26 [PluginFile("HeuristicLab.Problems.Instances.Views-3.4.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Common", "3.3")] 28 [PluginDependency("HeuristicLab.Common.Resources", "3.3")] 28 29 [PluginDependency("HeuristicLab.MainForm", "3.3")] 29 30 [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")] 30 [PluginDependency("HeuristicLab.Optimization", "3.3")]31 31 [PluginDependency("HeuristicLab.Problems.Instances", "3.3")] 32 [PluginDependency("HeuristicLab.Problems.Instances.Regression", "3.4")]33 32 public class HeuristicLabProblemsInstancesPlugin : PluginBase { 34 33 } -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceConsumerView.Designer.cs ¶
r7664 r7665 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.components = new System.ComponentModel.Container();48 47 this.problemInstanceProviderComboBox = new System.Windows.Forms.ComboBox(); 49 48 this.libraryInfoButton = new System.Windows.Forms.Button(); … … 56 55 this.problemInstanceProviderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 57 56 this.problemInstanceProviderComboBox.FormattingEnabled = true; 58 this.problemInstanceProviderComboBox.Location = new System.Drawing.Point( 49, 0);57 this.problemInstanceProviderComboBox.Location = new System.Drawing.Point(50, 0); 59 58 this.problemInstanceProviderComboBox.Name = "problemInstanceProviderComboBox"; 60 59 this.problemInstanceProviderComboBox.Size = new System.Drawing.Size(171, 21); … … 76 75 // 77 76 this.libraryLabel.AutoSize = true; 78 this.libraryLabel.Location = new System.Drawing.Point( 5, 4);77 this.libraryLabel.Location = new System.Drawing.Point(3, 3); 79 78 this.libraryLabel.Name = "libraryLabel"; 80 79 this.libraryLabel.Size = new System.Drawing.Size(41, 13); … … 84 83 // problemInstanceProviderViewHost 85 84 // 86 this.problemInstanceProviderViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 87 85 this.problemInstanceProviderViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 86 | System.Windows.Forms.AnchorStyles.Right))); 88 87 this.problemInstanceProviderViewHost.Caption = "View"; 89 88 this.problemInstanceProviderViewHost.Content = null; 90 89 this.problemInstanceProviderViewHost.Enabled = false; 91 this.problemInstanceProviderViewHost.Location = new System.Drawing.Point( 0, 0);90 this.problemInstanceProviderViewHost.Location = new System.Drawing.Point(258, 0); 92 91 this.problemInstanceProviderViewHost.Name = "problemInstanceProviderViewHost"; 93 92 this.problemInstanceProviderViewHost.ReadOnly = false; 94 this.problemInstanceProviderViewHost.Size = new System.Drawing.Size( 251, 22);93 this.problemInstanceProviderViewHost.Size = new System.Drawing.Size(433, 22); 95 94 this.problemInstanceProviderViewHost.TabIndex = 15; 96 95 this.problemInstanceProviderViewHost.ViewsLabelVisible = false; 97 96 this.problemInstanceProviderViewHost.ViewType = null; 98 97 // 99 // ProblemInstanceConsum ableView98 // ProblemInstanceConsumerView 100 99 // 101 100 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 102 101 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 102 this.Controls.Add(this.problemInstanceProviderViewHost); 103 103 this.Controls.Add(this.problemInstanceProviderComboBox); 104 104 this.Controls.Add(this.libraryInfoButton); 105 105 this.Controls.Add(this.libraryLabel); 106 this.Name = "ProblemInstanceConsum ableView";106 this.Name = "ProblemInstanceConsumerView"; 107 107 this.Size = new System.Drawing.Size(694, 21); 108 108 this.ResumeLayout(false); -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceConsumerView.cs ¶
r7664 r7665 73 73 private void problemInstanceProviderComboBox_SelectedIndexChanged(object sender, System.EventArgs e) { 74 74 if (problemInstanceProviderComboBox.SelectedIndex >= 0) { 75 //dynamic provider = SelectedProvider;76 //dynamic consumer = Content;77 //provider.Consumer = consumer;78 75 problemInstanceProviderViewHost.Content = SelectedProvider; 79 76 dynamic view = problemInstanceProviderViewHost.ActiveView; 80 view.Consumer = Content; 81 //Check if IProblemInstanceExporterView is implemented 82 view.Exporter = Content; 77 dynamic content = Content; 78 view.Consumer = content; 79 if (CheckForIProblemInstanceExporter(Content)) 80 view.Exporter = content; 83 81 //SetTooltip(); 84 82 } 85 83 SetEnabledStateOfControls(); 84 } 85 86 private bool CheckForIProblemInstanceExporter(IProblemInstanceConsumer content) { 87 // no check if IProblemInstanceConsumer<T> and IProblemInstanceExporter<T> have the same generic type T 88 return Content.GetType().GetInterfaces() 89 .Any(x => x.IsGenericType && x.GetGenericTypeDefinition().Equals(typeof(IProblemInstanceExporter<>))); 86 90 } 87 91 -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceProviderView.Designer.cs ¶
r7664 r7665 54 54 this.exportButton = new System.Windows.Forms.Button(); 55 55 this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); 56 this.problemInstanceProviderSplitContainer = new System.Windows.Forms.SplitContainer(); 57 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceProviderSplitContainer)).BeginInit(); 58 this.problemInstanceProviderSplitContainer.Panel1.SuspendLayout(); 59 this.problemInstanceProviderSplitContainer.Panel2.SuspendLayout(); 60 this.problemInstanceProviderSplitContainer.SuspendLayout(); 56 61 this.SuspendLayout(); 57 62 // … … 59 64 // 60 65 this.loadButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 61 this.loadButton.Location = new System.Drawing.Point(60 1, -1);66 this.loadButton.Location = new System.Drawing.Point(604, 0); 62 67 this.loadButton.Name = "loadButton"; 63 68 this.loadButton.Size = new System.Drawing.Size(26, 23); … … 70 75 // 71 76 this.instanceLabel.AutoSize = true; 72 this.instanceLabel.Location = new System.Drawing.Point( -3, 3);77 this.instanceLabel.Location = new System.Drawing.Point(3, 4); 73 78 this.instanceLabel.Name = "instanceLabel"; 74 79 this.instanceLabel.Size = new System.Drawing.Size(51, 13); … … 78 83 // instancesComboBox 79 84 // 80 this.instancesComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 85 this.instancesComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 81 86 | System.Windows.Forms.AnchorStyles.Right))); 82 87 this.instancesComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 83 88 this.instancesComboBox.FormattingEnabled = true; 84 this.instancesComboBox.Location = new System.Drawing.Point( 54, 0);89 this.instancesComboBox.Location = new System.Drawing.Point(60, 1); 85 90 this.instancesComboBox.Name = "instancesComboBox"; 86 this.instancesComboBox.Size = new System.Drawing.Size(5 41, 21);91 this.instancesComboBox.Size = new System.Drawing.Size(538, 21); 87 92 this.instancesComboBox.TabIndex = 7; 88 93 this.instancesComboBox.DataSourceChanged += new System.EventHandler(this.comboBox_DataSourceChanged); … … 91 96 // 92 97 this.importButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 93 this.importButton.Location = new System.Drawing.Point(63 3, -1);98 this.importButton.Location = new System.Drawing.Point(636, 0); 94 99 this.importButton.Name = "importButton"; 95 100 this.importButton.Size = new System.Drawing.Size(26, 23); … … 107 112 // 108 113 this.exportButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 109 this.exportButton.Location = new System.Drawing.Point( 665, -1);114 this.exportButton.Location = new System.Drawing.Point(-1, 0); 110 115 this.exportButton.Name = "exportButton"; 111 116 this.exportButton.Size = new System.Drawing.Size(26, 23); … … 121 126 this.saveFileDialog.Title = "Save RegressionInstance..."; 122 127 // 128 // problemInstanceProviderSplitContainer 129 // 130 this.problemInstanceProviderSplitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 131 | System.Windows.Forms.AnchorStyles.Left) 132 | System.Windows.Forms.AnchorStyles.Right))); 133 this.problemInstanceProviderSplitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; 134 this.problemInstanceProviderSplitContainer.IsSplitterFixed = true; 135 this.problemInstanceProviderSplitContainer.Location = new System.Drawing.Point(0, -1); 136 this.problemInstanceProviderSplitContainer.Name = "problemInstanceProviderSplitContainer"; 137 // 138 // problemInstanceProviderSplitContainer.Panel1 139 // 140 this.problemInstanceProviderSplitContainer.Panel1.Controls.Add(this.instanceLabel); 141 this.problemInstanceProviderSplitContainer.Panel1.Controls.Add(this.instancesComboBox); 142 this.problemInstanceProviderSplitContainer.Panel1.Controls.Add(this.importButton); 143 this.problemInstanceProviderSplitContainer.Panel1.Controls.Add(this.loadButton); 144 // 145 // problemInstanceProviderSplitContainer.Panel2 146 // 147 this.problemInstanceProviderSplitContainer.Panel2.Controls.Add(this.exportButton); 148 this.problemInstanceProviderSplitContainer.Size = new System.Drawing.Size(694, 22); 149 this.problemInstanceProviderSplitContainer.SplitterDistance = 665; 150 this.problemInstanceProviderSplitContainer.TabIndex = 9; 151 // 123 152 // ProblemInstanceProviderView 124 153 // 125 154 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 126 155 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 127 this.Controls.Add(this.exportButton); 128 this.Controls.Add(this.instancesComboBox); 129 this.Controls.Add(this.importButton); 130 this.Controls.Add(this.loadButton); 131 this.Controls.Add(this.instanceLabel); 156 this.Controls.Add(this.problemInstanceProviderSplitContainer); 132 157 this.Name = "ProblemInstanceProviderView"; 133 158 this.Size = new System.Drawing.Size(694, 21); 159 this.problemInstanceProviderSplitContainer.Panel1.ResumeLayout(false); 160 this.problemInstanceProviderSplitContainer.Panel1.PerformLayout(); 161 this.problemInstanceProviderSplitContainer.Panel2.ResumeLayout(false); 162 ((System.ComponentModel.ISupportInitialize)(this.problemInstanceProviderSplitContainer)).EndInit(); 163 this.problemInstanceProviderSplitContainer.ResumeLayout(false); 134 164 this.ResumeLayout(false); 135 this.PerformLayout();136 165 137 166 } … … 147 176 protected System.Windows.Forms.Button exportButton; 148 177 private System.Windows.Forms.SaveFileDialog saveFileDialog; 178 private System.Windows.Forms.SplitContainer problemInstanceProviderSplitContainer; 149 179 150 180 } -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/ProblemInstanceProviderView.cs ¶
r7664 r7665 68 68 protected override void SetEnabledStateOfControls() { 69 69 base.SetEnabledStateOfControls(); 70 instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && Content.Consumer != null; 71 loadButton.Enabled = !ReadOnly && !Locked && Content != null && Content.Consumer != null; 70 instancesComboBox.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null; 71 loadButton.Enabled = !ReadOnly && !Locked && Content != null && Consumer != null; 72 exportButton.Enabled = !ReadOnly && !Locked && Content != null && Exporter != null; 73 problemInstanceProviderSplitContainer.Panel2Collapsed = !exportButton.Enabled; 72 74 } 73 75 … … 76 78 var instance = Content.LoadData(descriptor); 77 79 try { 78 Con tent.Consumer.Load(instance);80 Consumer.Load(instance); 79 81 } 80 82 catch (Exception ex) { … … 95 97 } 96 98 try { 97 Con tent.Consumer.Load(instance);99 Consumer.Load(instance); 98 100 } 99 101 catch (Exception ex) { … … 106 108 if (saveFileDialog.ShowDialog(this) == DialogResult.OK) { 107 109 try { 108 var descriptor = (IDataDescriptor)instancesComboBox.SelectedItem; 109 var instance = Content.LoadData(descriptor); 110 Content.SaveData(instance, saveFileDialog.FileName); 110 Content.SaveData(Exporter.Export(), saveFileDialog.FileName); 111 111 } 112 112 catch (Exception ex) { -
TabularUnified branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/Properties/AssemblyInfo.cs ¶
r7664 r7665 1 using System.Reflection; 2 using System.Runtime.CompilerServices; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 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 #endregion 21 22 using System.Reflection; 3 23 using System.Runtime.InteropServices; 4 24 … … 6 26 // set of attributes. Change these attribute values to modify the information 7 27 // associated with an assembly. 8 [assembly: AssemblyTitle("HeuristicLab.Problems.Instances.Views -3.4")]9 [assembly: AssemblyDescription(" ")]28 [assembly: AssemblyTitle("HeuristicLab.Problems.Instances.Views")] 29 [assembly: AssemblyDescription("Provides views for Problem Instances.")] 10 30 [assembly: AssemblyConfiguration("")] 11 31 [assembly: AssemblyCompany("")] 12 [assembly: AssemblyProduct("HeuristicLab .Problems.Instances.Views-3.4")]13 [assembly: AssemblyCopyright(" Copyright © 2012")]32 [assembly: AssemblyProduct("HeuristicLab")] 33 [assembly: AssemblyCopyright("(c) 2002-2012 HEAL")] 14 34 [assembly: AssemblyTrademark("")] 15 35 [assembly: AssemblyCulture("")] … … 30 50 // Revision 31 51 // 32 // You can specify all the values or you can default the Build and RevisionNumbers52 // You can specify all the values or you can default the Revision and Build Numbers 33 53 // by using the '*' as shown below: 34 // [assembly: AssemblyVersion("1.0.*")] 35 [assembly: AssemblyVersion("1.0.0.0")] 36 [assembly: AssemblyFileVersion("1.0.0.0")] 54 [assembly: AssemblyVersion("3.4.0.0")] 55 [assembly: AssemblyFileVersion("3.4.2.7664")]
Note: See TracChangeset
for help on using the changeset viewer.