Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/07/10 14:36:22 (14 years ago)
Author:
mkommend
Message:
  • refactored ViewHost and various views to use fewer nested controls
  • added UnitTests for ContentViews to ensure proper using of the ContentAttribute
  • fixed some views which could not handle null as Content

(ticket #972)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs

    r3904 r4011  
    140140    }
    141141    private void repetitionsNumericUpDown_ValueChanged(object sender, EventArgs e) {
    142       Content.Repetitions = (int)repetitionsNumericUpDown.Value;
     142      if (Content != null)
     143        Content.Repetitions = (int)repetitionsNumericUpDown.Value;
    143144    }
    144145    private void newAlgorithmButton_Click(object sender, EventArgs e) {
     
    197198      Content.Prepare(false);
    198199    }
    199     private void algorithmPanel_DragEnterOver(object sender, DragEventArgs e) {
     200    private void algorithmViewHost_DragEnterOver(object sender, DragEventArgs e) {
    200201      e.Effect = DragDropEffects.None;
    201202      if (ReadOnly)
     
    210211      }
    211212    }
    212     private void algorithmPanel_DragDrop(object sender, DragEventArgs e) {
     213    private void algorithmViewHost_DragDrop(object sender, DragEventArgs e) {
    213214      if (e.Effect != DragDropEffects.None) {
    214215        IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm;
Note: See TracChangeset for help on using the changeset viewer.