Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4408


Ignore:
Timestamp:
09/16/10 06:43:08 (14 years ago)
Author:
swagner
Message:

Worked on OKB data model and services (#1174)

Location:
branches/OKB/HeuristicLab.Clients.OKB-3.3
Files:
12 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.Designer.cs

    r4390 r4408  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.components = new System.ComponentModel.Container();
    48       this.dataGridView1 = new System.Windows.Forms.DataGridView();
    49       this.idDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
    50       this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    51       this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    52       this.algorithmClassBindingSource = new System.Windows.Forms.BindingSource(this.components);
    53       this.refreshButton = new System.Windows.Forms.Button();
    54       this.saveButton = new System.Windows.Forms.Button();
    55       this.tabControl1 = new System.Windows.Forms.TabControl();
    56       this.tabPage1 = new System.Windows.Forms.TabPage();
    57       this.populateButton = new System.Windows.Forms.Button();
    58       this.tabPage2 = new System.Windows.Forms.TabPage();
    59       this.dataGridView2 = new System.Windows.Forms.DataGridView();
    60       this.idDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    61       this.algorithmClassIdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    62       this.platformIdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    63       this.nameDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
    64       this.descriptionDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
    65       this.algorithmDataDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    66       this.algorithmClassDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    67       this.platformDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    68       this.algorithmBindingSource = new System.Windows.Forms.BindingSource(this.components);
    69       ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
    70       ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).BeginInit();
    71       this.tabControl1.SuspendLayout();
    72       this.tabPage1.SuspendLayout();
    73       this.tabPage2.SuspendLayout();
    74       ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
    75       ((System.ComponentModel.ISupportInitialize)(this.algorithmBindingSource)).BeginInit();
     47      this.tabControl = new System.Windows.Forms.TabControl();
     48      this.algorithmClassesTabPage = new System.Windows.Forms.TabPage();
     49      this.algorithmsTabPage = new System.Windows.Forms.TabPage();
     50      this.refreshAlgorithmsButton = new System.Windows.Forms.Button();
     51      this.algorithmCollectionView = new HeuristicLab.Clients.OKB.AlgorithmCollectionView();
     52      this.algorithmClassCollectionView = new HeuristicLab.Clients.OKB.AlgorithmClassCollectionView();
     53      this.refreshAlgorithmClassesButton = new System.Windows.Forms.Button();
     54      this.tabControl.SuspendLayout();
     55      this.algorithmClassesTabPage.SuspendLayout();
     56      this.algorithmsTabPage.SuspendLayout();
    7657      this.SuspendLayout();
    7758      //
    78       // dataGridView1
     59      // tabControl
    7960      //
    80       this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     61      this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    8162                  | System.Windows.Forms.AnchorStyles.Left)
    8263                  | System.Windows.Forms.AnchorStyles.Right)));
    83       this.dataGridView1.AutoGenerateColumns = false;
    84       this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
    85       this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
    86       this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
    87             this.idDataGridViewTextBoxColumn1,
    88             this.nameDataGridViewTextBoxColumn,
    89             this.descriptionDataGridViewTextBoxColumn});
    90       this.dataGridView1.DataSource = this.algorithmClassBindingSource;
    91       this.dataGridView1.Location = new System.Drawing.Point(6, 6);
    92       this.dataGridView1.Name = "dataGridView1";
    93       this.dataGridView1.Size = new System.Drawing.Size(707, 368);
    94       this.dataGridView1.TabIndex = 0;
    95       this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
    96       this.dataGridView1.UserAddedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserAddedRow);
    97       this.dataGridView1.UserDeletedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserDeletedRow);
     64      this.tabControl.Controls.Add(this.algorithmClassesTabPage);
     65      this.tabControl.Controls.Add(this.algorithmsTabPage);
     66      this.tabControl.Location = new System.Drawing.Point(0, 0);
     67      this.tabControl.Name = "tabControl";
     68      this.tabControl.SelectedIndex = 0;
     69      this.tabControl.Size = new System.Drawing.Size(727, 435);
     70      this.tabControl.TabIndex = 2;
    9871      //
    99       // idDataGridViewTextBoxColumn1
     72      // algorithmClassesTabPage
    10073      //
    101       this.idDataGridViewTextBoxColumn1.DataPropertyName = "Id";
    102       this.idDataGridViewTextBoxColumn1.HeaderText = "Id";
    103       this.idDataGridViewTextBoxColumn1.Name = "idDataGridViewTextBoxColumn1";
    104       this.idDataGridViewTextBoxColumn1.ReadOnly = true;
    105       this.idDataGridViewTextBoxColumn1.Width = 41;
     74      this.algorithmClassesTabPage.Controls.Add(this.refreshAlgorithmClassesButton);
     75      this.algorithmClassesTabPage.Controls.Add(this.algorithmClassCollectionView);
     76      this.algorithmClassesTabPage.Location = new System.Drawing.Point(4, 22);
     77      this.algorithmClassesTabPage.Name = "algorithmClassesTabPage";
     78      this.algorithmClassesTabPage.Padding = new System.Windows.Forms.Padding(3);
     79      this.algorithmClassesTabPage.Size = new System.Drawing.Size(719, 409);
     80      this.algorithmClassesTabPage.TabIndex = 0;
     81      this.algorithmClassesTabPage.Text = "Algorithm Classes";
     82      this.algorithmClassesTabPage.UseVisualStyleBackColor = true;
    10683      //
    107       // nameDataGridViewTextBoxColumn
     84      // algorithmsTabPage
    10885      //
    109       this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
    110       this.nameDataGridViewTextBoxColumn.HeaderText = "Name";
    111       this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
    112       this.nameDataGridViewTextBoxColumn.Width = 60;
     86      this.algorithmsTabPage.Controls.Add(this.refreshAlgorithmsButton);
     87      this.algorithmsTabPage.Controls.Add(this.algorithmCollectionView);
     88      this.algorithmsTabPage.Location = new System.Drawing.Point(4, 22);
     89      this.algorithmsTabPage.Name = "algorithmsTabPage";
     90      this.algorithmsTabPage.Padding = new System.Windows.Forms.Padding(3);
     91      this.algorithmsTabPage.Size = new System.Drawing.Size(719, 409);
     92      this.algorithmsTabPage.TabIndex = 1;
     93      this.algorithmsTabPage.Text = "Algorithms";
     94      this.algorithmsTabPage.UseVisualStyleBackColor = true;
    11395      //
    114       // descriptionDataGridViewTextBoxColumn
     96      // refreshAlgorithmsButton
    11597      //
    116       this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description";
    117       this.descriptionDataGridViewTextBoxColumn.HeaderText = "Description";
    118       this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn";
    119       this.descriptionDataGridViewTextBoxColumn.Width = 85;
     98      this.refreshAlgorithmsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     99      this.refreshAlgorithmsButton.Location = new System.Drawing.Point(6, 380);
     100      this.refreshAlgorithmsButton.Name = "refreshAlgorithmsButton";
     101      this.refreshAlgorithmsButton.Size = new System.Drawing.Size(75, 23);
     102      this.refreshAlgorithmsButton.TabIndex = 1;
     103      this.refreshAlgorithmsButton.Text = "&Refresh";
     104      this.refreshAlgorithmsButton.UseVisualStyleBackColor = true;
     105      this.refreshAlgorithmsButton.Click += new System.EventHandler(this.refreshAlgorithmsButton_Click);
    120106      //
    121       // algorithmClassBindingSource
     107      // algorithmCollectionView
    122108      //
    123       this.algorithmClassBindingSource.DataSource = typeof(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass);
    124       this.algorithmClassBindingSource.Sort = "";
     109      this.algorithmCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     110                  | System.Windows.Forms.AnchorStyles.Left)
     111                  | System.Windows.Forms.AnchorStyles.Right)));
     112      this.algorithmCollectionView.Caption = "AlgorithmCollection View";
     113      this.algorithmCollectionView.Content = null;
     114      this.algorithmCollectionView.Location = new System.Drawing.Point(6, 6);
     115      this.algorithmCollectionView.Name = "algorithmCollectionView";
     116      this.algorithmCollectionView.ReadOnly = false;
     117      this.algorithmCollectionView.Size = new System.Drawing.Size(707, 368);
     118      this.algorithmCollectionView.TabIndex = 0;
    125119      //
    126       // refreshButton
     120      // algorithmClassCollectionView
    127121      //
    128       this.refreshButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    129       this.refreshButton.Location = new System.Drawing.Point(6, 380);
    130       this.refreshButton.Name = "refreshButton";
    131       this.refreshButton.Size = new System.Drawing.Size(75, 23);
    132       this.refreshButton.TabIndex = 1;
    133       this.refreshButton.Text = "&Refresh";
    134       this.refreshButton.UseVisualStyleBackColor = true;
    135       this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
     122      this.algorithmClassCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     123                  | System.Windows.Forms.AnchorStyles.Left)
     124                  | System.Windows.Forms.AnchorStyles.Right)));
     125      this.algorithmClassCollectionView.Caption = "AlgorithmClassCollection View";
     126      this.algorithmClassCollectionView.Content = null;
     127      this.algorithmClassCollectionView.Location = new System.Drawing.Point(6, 6);
     128      this.algorithmClassCollectionView.Name = "algorithmClassCollectionView";
     129      this.algorithmClassCollectionView.ReadOnly = false;
     130      this.algorithmClassCollectionView.Size = new System.Drawing.Size(707, 368);
     131      this.algorithmClassCollectionView.TabIndex = 0;
    136132      //
    137       // saveButton
     133      // refreshAlgorithmClassesButton
    138134      //
    139       this.saveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    140       this.saveButton.Location = new System.Drawing.Point(87, 380);
    141       this.saveButton.Name = "saveButton";
    142       this.saveButton.Size = new System.Drawing.Size(75, 23);
    143       this.saveButton.TabIndex = 1;
    144       this.saveButton.Text = "&Save";
    145       this.saveButton.UseVisualStyleBackColor = true;
    146       this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
    147       //
    148       // tabControl1
    149       //
    150       this.tabControl1.Controls.Add(this.tabPage1);
    151       this.tabControl1.Controls.Add(this.tabPage2);
    152       this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
    153       this.tabControl1.Location = new System.Drawing.Point(0, 0);
    154       this.tabControl1.Name = "tabControl1";
    155       this.tabControl1.SelectedIndex = 0;
    156       this.tabControl1.Size = new System.Drawing.Size(727, 435);
    157       this.tabControl1.TabIndex = 2;
    158       //
    159       // tabPage1
    160       //
    161       this.tabPage1.Controls.Add(this.dataGridView1);
    162       this.tabPage1.Controls.Add(this.refreshButton);
    163       this.tabPage1.Controls.Add(this.populateButton);
    164       this.tabPage1.Controls.Add(this.saveButton);
    165       this.tabPage1.Location = new System.Drawing.Point(4, 22);
    166       this.tabPage1.Name = "tabPage1";
    167       this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
    168       this.tabPage1.Size = new System.Drawing.Size(719, 409);
    169       this.tabPage1.TabIndex = 0;
    170       this.tabPage1.Text = "tabPage1";
    171       this.tabPage1.UseVisualStyleBackColor = true;
    172       //
    173       // populateButton
    174       //
    175       this.populateButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    176       this.populateButton.Location = new System.Drawing.Point(168, 380);
    177       this.populateButton.Name = "populateButton";
    178       this.populateButton.Size = new System.Drawing.Size(75, 23);
    179       this.populateButton.TabIndex = 1;
    180       this.populateButton.Text = "&Populate";
    181       this.populateButton.UseVisualStyleBackColor = true;
    182       this.populateButton.Click += new System.EventHandler(this.populateButton_Click);
    183       //
    184       // tabPage2
    185       //
    186       this.tabPage2.Controls.Add(this.dataGridView2);
    187       this.tabPage2.Location = new System.Drawing.Point(4, 22);
    188       this.tabPage2.Name = "tabPage2";
    189       this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
    190       this.tabPage2.Size = new System.Drawing.Size(719, 409);
    191       this.tabPage2.TabIndex = 1;
    192       this.tabPage2.Text = "tabPage2";
    193       this.tabPage2.UseVisualStyleBackColor = true;
    194       //
    195       // dataGridView2
    196       //
    197       this.dataGridView2.AutoGenerateColumns = false;
    198       this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
    199       this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
    200             this.idDataGridViewTextBoxColumn,
    201             this.algorithmClassIdDataGridViewTextBoxColumn,
    202             this.platformIdDataGridViewTextBoxColumn,
    203             this.nameDataGridViewTextBoxColumn1,
    204             this.descriptionDataGridViewTextBoxColumn1,
    205             this.algorithmDataDataGridViewTextBoxColumn,
    206             this.algorithmClassDataGridViewTextBoxColumn,
    207             this.platformDataGridViewTextBoxColumn});
    208       this.dataGridView2.DataSource = this.algorithmBindingSource;
    209       this.dataGridView2.Location = new System.Drawing.Point(6, 6);
    210       this.dataGridView2.Name = "dataGridView2";
    211       this.dataGridView2.Size = new System.Drawing.Size(707, 344);
    212       this.dataGridView2.TabIndex = 0;
    213       //
    214       // idDataGridViewTextBoxColumn
    215       //
    216       this.idDataGridViewTextBoxColumn.DataPropertyName = "Id";
    217       this.idDataGridViewTextBoxColumn.HeaderText = "Id";
    218       this.idDataGridViewTextBoxColumn.Name = "idDataGridViewTextBoxColumn";
    219       //
    220       // algorithmClassIdDataGridViewTextBoxColumn
    221       //
    222       this.algorithmClassIdDataGridViewTextBoxColumn.DataPropertyName = "AlgorithmClassId";
    223       this.algorithmClassIdDataGridViewTextBoxColumn.HeaderText = "AlgorithmClassId";
    224       this.algorithmClassIdDataGridViewTextBoxColumn.Name = "algorithmClassIdDataGridViewTextBoxColumn";
    225       //
    226       // platformIdDataGridViewTextBoxColumn
    227       //
    228       this.platformIdDataGridViewTextBoxColumn.DataPropertyName = "PlatformId";
    229       this.platformIdDataGridViewTextBoxColumn.HeaderText = "PlatformId";
    230       this.platformIdDataGridViewTextBoxColumn.Name = "platformIdDataGridViewTextBoxColumn";
    231       //
    232       // nameDataGridViewTextBoxColumn1
    233       //
    234       this.nameDataGridViewTextBoxColumn1.DataPropertyName = "Name";
    235       this.nameDataGridViewTextBoxColumn1.HeaderText = "Name";
    236       this.nameDataGridViewTextBoxColumn1.Name = "nameDataGridViewTextBoxColumn1";
    237       //
    238       // descriptionDataGridViewTextBoxColumn1
    239       //
    240       this.descriptionDataGridViewTextBoxColumn1.DataPropertyName = "Description";
    241       this.descriptionDataGridViewTextBoxColumn1.HeaderText = "Description";
    242       this.descriptionDataGridViewTextBoxColumn1.Name = "descriptionDataGridViewTextBoxColumn1";
    243       //
    244       // algorithmDataDataGridViewTextBoxColumn
    245       //
    246       this.algorithmDataDataGridViewTextBoxColumn.DataPropertyName = "AlgorithmData";
    247       this.algorithmDataDataGridViewTextBoxColumn.HeaderText = "AlgorithmData";
    248       this.algorithmDataDataGridViewTextBoxColumn.Name = "algorithmDataDataGridViewTextBoxColumn";
    249       //
    250       // algorithmClassDataGridViewTextBoxColumn
    251       //
    252       this.algorithmClassDataGridViewTextBoxColumn.DataPropertyName = "AlgorithmClass";
    253       this.algorithmClassDataGridViewTextBoxColumn.HeaderText = "AlgorithmClass";
    254       this.algorithmClassDataGridViewTextBoxColumn.Name = "algorithmClassDataGridViewTextBoxColumn";
    255       //
    256       // platformDataGridViewTextBoxColumn
    257       //
    258       this.platformDataGridViewTextBoxColumn.DataPropertyName = "Platform";
    259       this.platformDataGridViewTextBoxColumn.HeaderText = "Platform";
    260       this.platformDataGridViewTextBoxColumn.Name = "platformDataGridViewTextBoxColumn";
    261       //
    262       // algorithmBindingSource
    263       //
    264       this.algorithmBindingSource.DataSource = typeof(HeuristicLab.Clients.OKB.OKBAdmin.Algorithm);
     135      this.refreshAlgorithmClassesButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     136      this.refreshAlgorithmClassesButton.Location = new System.Drawing.Point(6, 380);
     137      this.refreshAlgorithmClassesButton.Name = "refreshAlgorithmClassesButton";
     138      this.refreshAlgorithmClassesButton.Size = new System.Drawing.Size(75, 23);
     139      this.refreshAlgorithmClassesButton.TabIndex = 2;
     140      this.refreshAlgorithmClassesButton.Text = "&Refresh";
     141      this.refreshAlgorithmClassesButton.UseVisualStyleBackColor = true;
     142      this.refreshAlgorithmClassesButton.Click += new System.EventHandler(this.refreshAlgorithmClassesButton_Click);
    265143      //
    266144      // AdministrationView
     
    268146      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    269147      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    270       this.Controls.Add(this.tabControl1);
     148      this.Controls.Add(this.tabControl);
    271149      this.Name = "AdministrationView";
    272150      this.Size = new System.Drawing.Size(727, 435);
    273       ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
    274       ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).EndInit();
    275       this.tabControl1.ResumeLayout(false);
    276       this.tabPage1.ResumeLayout(false);
    277       this.tabPage2.ResumeLayout(false);
    278       ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
    279       ((System.ComponentModel.ISupportInitialize)(this.algorithmBindingSource)).EndInit();
     151      this.tabControl.ResumeLayout(false);
     152      this.algorithmClassesTabPage.ResumeLayout(false);
     153      this.algorithmsTabPage.ResumeLayout(false);
    280154      this.ResumeLayout(false);
    281155
     
    284158    #endregion
    285159
    286     private System.Windows.Forms.DataGridView dataGridView1;
    287     private System.Windows.Forms.Button refreshButton;
    288     private System.Windows.Forms.Button saveButton;
    289     private System.Windows.Forms.BindingSource algorithmClassBindingSource;
    290     private System.Windows.Forms.TabControl tabControl1;
    291     private System.Windows.Forms.TabPage tabPage1;
    292     private System.Windows.Forms.TabPage tabPage2;
    293     private System.Windows.Forms.DataGridView dataGridView2;
    294     private System.Windows.Forms.DataGridViewTextBoxColumn idDataGridViewTextBoxColumn;
    295     private System.Windows.Forms.DataGridViewTextBoxColumn algorithmClassIdDataGridViewTextBoxColumn;
    296     private System.Windows.Forms.DataGridViewTextBoxColumn platformIdDataGridViewTextBoxColumn;
    297     private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn1;
    298     private System.Windows.Forms.DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn1;
    299     private System.Windows.Forms.DataGridViewTextBoxColumn algorithmDataDataGridViewTextBoxColumn;
    300     private System.Windows.Forms.DataGridViewTextBoxColumn algorithmClassDataGridViewTextBoxColumn;
    301     private System.Windows.Forms.DataGridViewTextBoxColumn platformDataGridViewTextBoxColumn;
    302     private System.Windows.Forms.BindingSource algorithmBindingSource;
    303     private System.Windows.Forms.Button populateButton;
    304     private System.Windows.Forms.DataGridViewTextBoxColumn idDataGridViewTextBoxColumn1;
    305     private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
    306     private System.Windows.Forms.DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn;
     160    private System.Windows.Forms.TabControl tabControl;
     161    private System.Windows.Forms.TabPage algorithmClassesTabPage;
     162    private System.Windows.Forms.TabPage algorithmsTabPage;
     163    private System.Windows.Forms.Button refreshAlgorithmsButton;
     164    private AlgorithmCollectionView algorithmCollectionView;
     165    private System.Windows.Forms.Button refreshAlgorithmClassesButton;
     166    private AlgorithmClassCollectionView algorithmClassCollectionView;
    307167
    308168  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.cs

    r4390 r4408  
    2020#endregion
    2121
     22using System;
    2223using System.Windows.Forms;
     24using HeuristicLab.Clients.Common;
     25using HeuristicLab.Clients.OKB.AdminService;
    2326using HeuristicLab.MainForm;
    24 using HeuristicLab.Clients.Common;
    25 using HeuristicLab.Clients.OKB.OKBAdmin;
    26 using System.ComponentModel;
    27 using System.Collections.Generic;
    28 using System.Data;
    29 using System;
     27using HeuristicLab.PluginInfrastructure;
    3028
    3129namespace HeuristicLab.Clients.OKB {
    3230  [View("OKB Administration")]
    3331  public partial class AdministrationView : HeuristicLab.MainForm.WindowsForms.View {
    34     List<AlgorithmClass> data;
    35 
    3632    public AdministrationView() {
    3733      InitializeComponent();
    3834    }
    3935
    40     private void refreshButton_Click(object sender, System.EventArgs e) {
    41       IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
    42       data = adminService.GetAlgorithmClasses();
    43       algorithmClassBindingSource.DataSource = data;
     36    private void refreshAlgorithmClassesButton_Click(object sender, EventArgs e) {
     37      using (AdminServiceClient adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>()) {
     38        try {
     39          algorithmClassCollectionView.Content = new EntityCollection<AlgorithmClass>(adminService.GetAlgorithmClasses());
     40        }
     41        catch (Exception ex) {
     42          ErrorHandling.ShowErrorDialog(ex);
     43        }
     44      }
    4445    }
    4546
    46     private void saveButton_Click(object sender, System.EventArgs e) {
    47       IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
    48     }
    49 
    50     private void populateButton_Click(object sender, System.EventArgs e) {
    51       IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
    52       for (int i = 0; i < 100; i++)
    53         adminService.AddAlgorithmClass(new AlgorithmClass() { Name = Guid.NewGuid().ToString() });
    54     }
    55 
    56     private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) {
    57       IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
    58       adminService.UpdateAlgorithmClass(data[e.RowIndex]);
    59     }
    60 
    61     private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e) {
    62       IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
    63       adminService.AddAlgorithmClass(new AlgorithmClass() {
    64         Name = (string)e.Row.Cells["Name"].Value,
    65         Description = (string)e.Row.Cells["Description"].Value
    66       });
    67     }
    68 
    69     private void dataGridView1_UserDeletedRow(object sender, DataGridViewRowEventArgs e) {
    70       IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>();
    71       adminService.DeleteAlgorithmClass((long)e.Row.Cells["Id"].Value);
     47    private void refreshAlgorithmsButton_Click(object sender, EventArgs e) {
     48      using (AdminServiceClient adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>()) {
     49        try {
     50          algorithmCollectionView.Content = new EntityCollection<Algorithm>(adminService.GetAlgorithms());
     51        }
     52        catch (Exception ex) {
     53          ErrorHandling.ShowErrorDialog(ex);
     54        }
     55      }
    7256    }
    7357  }
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.resx

    r4390 r4408  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
    120   <metadata name="algorithmClassBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    121     <value>17, 17</value>
    122   </metadata>
    123   <metadata name="algorithmBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    124     <value>228, 17</value>
    125   </metadata>
    126   <metadata name="algorithmBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    127     <value>228, 17</value>
    128   </metadata>
    129120</root>
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Extensions.cs

    r4405 r4408  
    2020#endregion
    2121
     22using System;
     23using System.ComponentModel;
     24using System.Drawing;
     25using HeuristicLab.Collections;
    2226using HeuristicLab.Common;
    2327
    2428namespace HeuristicLab.Clients.OKB.AdminService {
    25   public partial class AlgorithmClass : IContent { }
    26   public partial class Algorithm : IContent { }
     29  public interface IEntity : IContent, INotifyPropertyChanged {
     30    Image EntityImage { get; }
     31
     32    event EventHandler EntityImageChanged;
     33    event EventHandler ToStringChanged;
     34  }
     35
     36  public interface INamedEntity : IEntity {
     37    string Name { get; set; }
     38    string Description { get; set; }
     39  }
     40
     41  public interface IEntityCollection<T> : IObservableCollection<T>, IEntity where T : class, IEntity { }
     42
     43  public partial class AlgorithmClass : INamedEntity {
     44    public Image EntityImage {
     45      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Class; }
     46    }
     47
     48    public event EventHandler EntityImageChanged;
     49    protected virtual void OnEntityImageChanged() {
     50      EventHandler handler = EntityImageChanged;
     51      if (handler != null) handler(this, EventArgs.Empty);
     52    }
     53    public event EventHandler ToStringChanged;
     54    protected virtual void OnToStringChanged() {
     55      EventHandler handler = ToStringChanged;
     56      if (handler != null) handler(this, EventArgs.Empty);
     57    }
     58  }
     59  public partial class Algorithm : INamedEntity {
     60    public Image EntityImage {
     61      get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Class; }
     62    }
     63
     64    public event EventHandler EntityImageChanged;
     65    protected virtual void OnEntityImageChanged() {
     66      EventHandler handler = EntityImageChanged;
     67      if (handler != null) handler(this, EventArgs.Empty);
     68    }
     69    public event EventHandler ToStringChanged;
     70    protected virtual void OnToStringChanged() {
     71      EventHandler handler = ToStringChanged;
     72      if (handler != null) handler(this, EventArgs.Empty);
     73    }
     74  }
    2775}
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/HeuristicLab.Clients.OKB-3.3.csproj

    r4405 r4408  
    3939  </PropertyGroup>
    4040  <ItemGroup>
    41     <Reference Include="HeuristicLab.Clients.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
     41    <Reference Include="HeuristicLab.Clients.Common-3.3">
     42      <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Clients.Common-3.3.dll</HintPath>
     43    </Reference>
     44    <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    4245    <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    43     <Reference Include="HeuristicLab.Core-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
     46    <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.2.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    4447    <Reference Include="HeuristicLab.Core.Views-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    4548    <Reference Include="HeuristicLab.MainForm-3.3">
     
    6871  <ItemGroup>
    6972    <Compile Include="AdministrationMenuItem.cs" />
     73    <Compile Include="AlgorithmCollectionView.cs">
     74      <SubType>UserControl</SubType>
     75    </Compile>
     76    <Compile Include="AlgorithmCollectionView.Designer.cs">
     77      <DependentUpon>AlgorithmCollectionView.cs</DependentUpon>
     78    </Compile>
    7079    <Compile Include="Extensions.cs" />
    7180    <Compile Include="HeuristicLabClientsOKBPlugin.cs" />
     
    7685      <DependentUpon>AdministrationView.cs</DependentUpon>
    7786    </Compile>
     87    <Compile Include="EntityCollection.cs" />
     88    <Compile Include="EntityCollectionView.cs">
     89      <SubType>UserControl</SubType>
     90    </Compile>
     91    <Compile Include="EntityCollectionView.Designer.cs">
     92      <DependentUpon>EntityCollectionView.cs</DependentUpon>
     93    </Compile>
     94    <Compile Include="EntityView.cs">
     95      <SubType>UserControl</SubType>
     96    </Compile>
     97    <Compile Include="EntityView.Designer.cs">
     98      <DependentUpon>EntityView.cs</DependentUpon>
     99    </Compile>
     100    <Compile Include="NamedEntityView.cs">
     101      <SubType>UserControl</SubType>
     102    </Compile>
     103    <Compile Include="NamedEntityView.Designer.cs">
     104      <DependentUpon>NamedEntityView.cs</DependentUpon>
     105    </Compile>
     106    <Compile Include="AlgorithmClassCollectionView.cs">
     107      <SubType>UserControl</SubType>
     108    </Compile>
     109    <Compile Include="AlgorithmClassCollectionView.Designer.cs">
     110      <DependentUpon>AlgorithmClassCollectionView.cs</DependentUpon>
     111    </Compile>
    78112    <Compile Include="Properties\AssemblyInfo.cs" />
     113    <Compile Include="ReadOnlyEntityCollection.cs" />
    79114    <Compile Include="Service References\AdminService\Reference.cs">
    80115      <AutoGen>True</AutoGen>
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/HeuristicLabClientsOKBPlugin.cs.frame

    r4388 r4408  
    2828  [Plugin("HeuristicLab.Clients.OKB", "3.3.0.$WCREV$")]
    2929  [PluginFile("HeuristicLab.Clients.OKB-3.3.dll", PluginFileType.Assembly)] 
     30  [PluginDependency("HeuristicLab.Clients.Common", "3.3")]
     31  [PluginDependency("HeuristicLab.Collections", "3.3")]
     32  [PluginDependency("HeuristicLab.Common", "3.3")]
     33  [PluginDependency("HeuristicLab.Common.Resources", "3.3")]
     34  [PluginDependency("HeuristicLab.Core.Views", "3.3")]
    3035  [PluginDependency("HeuristicLab.MainForm", "3.3")]
    3136  [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")]
Note: See TracChangeset for help on using the changeset viewer.