Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/03/12 02:10:15 (13 years ago)
Author:
swagner
Message:

Removed unnecessary resource files (*.resx) and removed unnecessary context menu items in ItemTreeView (#1725)

Location:
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3
Files:
8 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HeuristicLab.Clients.Hive.Views-3.3.csproj

    r7256 r7257  
    187187      <DependentUpon>HiveInformationDialog.cs</DependentUpon>
    188188    </EmbeddedResource>
    189     <EmbeddedResource Include="HiveTasks\OptimizerHiveTaskView.resx">
    190       <DependentUpon>OptimizerHiveTaskView.cs</DependentUpon>
    191     </EmbeddedResource>
    192     <EmbeddedResource Include="HiveTasks\HiveTaskView.resx">
    193       <DependentUpon>HiveTaskView.cs</DependentUpon>
    194     </EmbeddedResource>
    195     <EmbeddedResource Include="TreeView\ItemTreeView.resx">
    196       <DependentUpon>ItemTreeView.cs</DependentUpon>
    197     </EmbeddedResource>
    198     <EmbeddedResource Include="StateLog\StateLogGanttChartListView.resx">
    199       <DependentUpon>StateLogGanttChartListView.cs</DependentUpon>
    200     </EmbeddedResource>
    201     <EmbeddedResource Include="GanttChart\GanttChart.resx">
    202       <DependentUpon>GanttChart.cs</DependentUpon>
    203     </EmbeddedResource>
    204     <EmbeddedResource Include="StateLog\StateLogGanttChartView.resx">
    205       <DependentUpon>StateLogGanttChartView.cs</DependentUpon>
    206     </EmbeddedResource>
    207     <EmbeddedResource Include="StateLog\StateLogView.resx">
    208       <DependentUpon>StateLogView.cs</DependentUpon>
    209     </EmbeddedResource>
    210     <EmbeddedResource Include="Progress\ProgressView.resx">
    211       <DependentUpon>ProgressView.cs</DependentUpon>
    212     </EmbeddedResource>
    213189  </ItemGroup>
    214190  <ItemGroup>
  • trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.designer.cs

    r7104 r7257  
    2424    /// </summary>
    2525    private void InitializeComponent() {
    26       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptimizerHiveTaskView));
    2726      this.restartButton = new System.Windows.Forms.Button();
    2827      this.pauseButton = new System.Windows.Forms.Button();
     
    6261      //
    6362      this.restartButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    64       this.restartButton.Image = ((System.Drawing.Image)(resources.GetObject("restartButton.Image")));
     63      this.restartButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Restart;
    6564      this.restartButton.Location = new System.Drawing.Point(3, 348);
    6665      this.restartButton.Name = "restartButton";
     
    7473      this.pauseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    7574      this.pauseButton.Enabled = false;
    76       this.pauseButton.Image = ((System.Drawing.Image)(resources.GetObject("pauseButton.Image")));
     75      this.pauseButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Pause;
    7776      this.pauseButton.Location = new System.Drawing.Point(33, 348);
    7877      this.pauseButton.Name = "pauseButton";
     
    8584      //
    8685      this.stopButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    87       this.stopButton.Image = ((System.Drawing.Image)(resources.GetObject("stopButton.Image")));
     86      this.stopButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Stop;
    8887      this.stopButton.Location = new System.Drawing.Point(63, 348);
    8988      this.stopButton.Name = "stopButton";
  • trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/TreeView/ItemTreeView.cs

    r7056 r7257  
    345345
    346346    protected virtual void contextMenuStrip_Opening(object sender, CancelEventArgs e) {
    347       if (treeView.SelectedNode != null) {
     347      if (treeView.SelectedNode == null) {
     348        e.Cancel = true;
     349      } else {
    348350        T selectedItem = treeView.SelectedNode.Tag as T;
    349351        T parentItem = GetParentItem(selectedItem);
     
    353355          contextMenuStrip.Items.Add(new DelegateMenuItem<T>(action.Name, action.Image, new Action<T, T>(action.Execute), selectedItem, parentItem));
    354356        }
     357        e.Cancel = contextMenuStrip.Items.Count == 0;
    355358      }
    356359    }
  • trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/TreeView/ItemTreeView.designer.cs

    r6976 r7257  
    2626    private void InitializeComponent() {
    2727      this.components = new System.ComponentModel.Container();
    28       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ItemTreeView<T>));
    2928      this.splitContainer = new System.Windows.Forms.SplitContainer();
    3029      this.showDetailsCheckBox = new System.Windows.Forms.CheckBox();
     
    3332      this.treeView = new System.Windows.Forms.TreeView();
    3433      this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
    35       this.asfasdfToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    36       this.gfgffToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    3734      this.imageList = new System.Windows.Forms.ImageList(this.components);
    3835      this.detailsGroupBox = new System.Windows.Forms.GroupBox();
     
    123120      // contextMenuStrip
    124121      //
    125       this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
    126             this.asfasdfToolStripMenuItem,
    127             this.gfgffToolStripMenuItem});
    128122      this.contextMenuStrip.Name = "contextMenuStrip";
    129123      this.contextMenuStrip.Size = new System.Drawing.Size(153, 70);
    130124      this.contextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip_Opening);
    131       //
    132       // asfasdfToolStripMenuItem
    133       //
    134       this.asfasdfToolStripMenuItem.Name = "asfasdfToolStripMenuItem";
    135       this.asfasdfToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
    136       this.asfasdfToolStripMenuItem.Text = "asfasdf";
    137       //
    138       // gfgffToolStripMenuItem
    139       //
    140       this.gfgffToolStripMenuItem.Name = "gfgffToolStripMenuItem";
    141       this.gfgffToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
    142       this.gfgffToolStripMenuItem.Text = "gfgff";
    143125      //
    144126      // imageList
     
    197179    private System.Windows.Forms.GroupBox detailsGroupBox;
    198180    private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
    199     private System.Windows.Forms.ToolStripMenuItem asfasdfToolStripMenuItem;
    200     private System.Windows.Forms.ToolStripMenuItem gfgffToolStripMenuItem;
    201181    protected System.Windows.Forms.CheckBox showDetailsCheckBox;
    202182    protected System.Windows.Forms.Button removeButton;
Note: See TracChangeset for help on using the changeset viewer.