- Timestamp:
- 02/17/10 23:11:32 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.CEDMA.Server/3.3
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Server/3.3/DispatcherView.Designer.cs
r2422 r2824 52 52 this.testLabel = new System.Windows.Forms.Label(); 53 53 this.setAllButton = new System.Windows.Forms.Button(); 54 this.editEngineButton = new System.Windows.Forms.Button(); 54 55 this.splitContainer.Panel1.SuspendLayout(); 55 56 this.splitContainer.Panel2.SuspendLayout(); … … 130 131 // 131 132 this.learningTaskGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 133 this.learningTaskGroupBox.Controls.Add(this.editEngineButton); 132 134 this.learningTaskGroupBox.Controls.Add(this.setAlgorithmDefault); 133 135 this.learningTaskGroupBox.Controls.Add(this.autoregressiveLabel); … … 193 195 this.algorithmsListBox.Size = new System.Drawing.Size(331, 124); 194 196 this.algorithmsListBox.TabIndex = 4; 197 this.algorithmsListBox.SelectedIndexChanged += new System.EventHandler(this.algorithmsListBox_SelectedIndexChanged); 195 198 this.algorithmsListBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.algorithmsListBox_ItemCheck); 196 199 // … … 380 383 this.setAllButton.UseVisualStyleBackColor = true; 381 384 this.setAllButton.Click += new System.EventHandler(this.setAllButton_Click); 385 // 386 // editEngineButton 387 // 388 this.editEngineButton.Location = new System.Drawing.Point(108, 292); 389 this.editEngineButton.Name = "editEngineButton"; 390 this.editEngineButton.Size = new System.Drawing.Size(75, 23); 391 this.editEngineButton.TabIndex = 37; 392 this.editEngineButton.Text = "Edit engine"; 393 this.editEngineButton.UseVisualStyleBackColor = true; 394 this.editEngineButton.Click += new System.EventHandler(this.editEngineButton_Click); 382 395 // 383 396 // DispatcherView … … 431 444 private System.Windows.Forms.CheckBox autoregressiveCheckBox; 432 445 private System.Windows.Forms.Button setAlgorithmDefault; 446 private System.Windows.Forms.Button editEngineButton; 433 447 } 434 448 } -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/DispatcherView.cs
r2471 r2824 18 18 this.dispatcher = dispatcher; 19 19 InitializeComponent(); 20 editEngineButton.Enabled = false; 20 21 dispatcher.Changed += (sender, args) => UpdateControls(); 21 22 UpdateControls(); … … 246 247 } 247 248 249 private void editEngineButton_Click(object sender, EventArgs e) { 250 var algo = (HeuristicLab.Modeling.IAlgorithm)algorithmsListBox.SelectedItem; 251 HeuristicLab.PluginInfrastructure.ControlManager.Manager.ShowControl(algo.Engine.CreateView()); 252 } 253 254 private void algorithmsListBox_SelectedIndexChanged(object sender, EventArgs e) { 255 editEngineButton.Enabled = algorithmsListBox.SelectedItems.Count > 0; 256 } 257 248 258 } 249 259 } -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/HeuristicLab.CEDMA.Server-3.3.csproj
r2566 r2824 91 91 </ItemGroup> 92 92 <ItemGroup> 93 <Compile Include="EngineViewWrapper.cs"> 94 <SubType>UserControl</SubType> 95 </Compile> 96 <Compile Include="IUserInterfaceItemProvider.cs" /> 97 <Compile Include="MainForm.cs"> 98 <SubType>Form</SubType> 99 </Compile> 93 100 <Compile Include="ProblemSpecification.cs" /> 94 101 <Compile Include="LearningTask.cs" /> … … 159 166 <Project>{545CE756-98D8-423B-AC2E-6E7D70926E5C}</Project> 160 167 <Name>HeuristicLab.Grid-3.2</Name> 168 </ProjectReference> 169 <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.2\HeuristicLab.MainForm.WindowsForms-3.2.csproj"> 170 <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project> 171 <Name>HeuristicLab.MainForm.WindowsForms-3.2</Name> 172 </ProjectReference> 173 <ProjectReference Include="..\..\HeuristicLab.MainForm\3.2\HeuristicLab.MainForm-3.2.csproj"> 174 <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project> 175 <Name>HeuristicLab.MainForm-3.2</Name> 161 176 </ProjectReference> 162 177 <ProjectReference Include="..\..\HeuristicLab.Modeling.Database.SQLServerCompact\3.2\HeuristicLab.Modeling.Database.SQLServerCompact-3.2.csproj"> -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/Server.cs
r2451 r2824 79 79 80 80 public IView CreateView() { 81 return n ew ServerView(this);81 return null; 82 82 } 83 83 #endregion -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/ServerApplication.cs
r2621 r2824 30 30 class ServerApplication : ApplicationBase { 31 31 public override void Run() { 32 Server server = new Server(); 33 Form mainForm = new Form(); 34 mainForm.Size = new System.Drawing.Size(800, 600); 35 UserControl serverControl = (UserControl)server.CreateView(); 36 serverControl.Dock = DockStyle.Fill; 37 mainForm.Controls.Add(serverControl); 38 mainForm.Text = "CEDMA"; 32 MainForm mainForm = new MainForm(typeof(IUserInterfaceItemProvider)); 33 mainForm.Title = "CEDMA Server Controller"; 34 PluginInfrastructure.ControlManager.RegisterManager(mainForm); 39 35 Application.Run(mainForm); 40 36 } -
trunk/sources/HeuristicLab.CEDMA.Server/3.3/ServerView.cs
r2375 r2824 39 39 40 40 namespace HeuristicLab.CEDMA.Server { 41 public partial class ServerView : ViewBase{41 public partial class ServerView : HeuristicLab.MainForm.WindowsForms.View { 42 42 private Server server; 43 43 … … 46 46 this.server = server; 47 47 InitializeComponent(); 48 Caption = "Cedma Server Controller"; 48 49 } 49 50
Note: See TracChangeset
for help on using the changeset viewer.