- Timestamp:
- 12/29/11 04:17:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r7224 r7244 31 31 32 32 namespace HeuristicLab.Analysis.Views { 33 /// <summary>34 /// The visual representation of a <see cref="Variable"/>.35 /// </summary>36 33 [View("DataTable View")] 37 34 [Content(typeof(DataTable), true)] … … 39 36 protected List<Series> invisibleSeries; 40 37 protected Dictionary<IObservableList<double>, DataRow> valuesRowsTable; 41 /// <summary> 42 /// Gets or sets the variable to represent visually. 43 /// </summary> 44 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 45 /// No own data storage present.</remarks> 38 46 39 public new DataTable Content { 47 40 get { return (DataTable)base.Content; } … … 49 42 } 50 43 51 /// <summary>52 /// Initializes a new instance of <see cref="VariableView"/> with caption "Variable".53 /// </summary>54 44 public DataTableView() { 55 45 InitializeComponent(); … … 61 51 62 52 #region Event Handler Registration 63 /// <summary>64 /// Removes the eventhandlers from the underlying <see cref="Variable"/>.65 /// </summary>66 /// <remarks>Calls <see cref="ViewBase.RemoveItemEvents"/> of base class <see cref="ViewBase"/>.</remarks>67 53 protected override void DeregisterContentEvents() { 68 54 foreach (DataRow row in Content.Rows) … … 75 61 base.DeregisterContentEvents(); 76 62 } 77 78 /// <summary>79 /// Adds eventhandlers to the underlying <see cref="Variable"/>.80 /// </summary>81 /// <remarks>Calls <see cref="ViewBase.AddItemEvents"/> of base class <see cref="ViewBase"/>.</remarks>82 63 protected override void RegisterContentEvents() { 83 64 base.RegisterContentEvents(); … … 91 72 } 92 73 93 /// <summary>94 /// Automatically called for every existing data row and whenever a data row is added95 /// to the data table. Do not call this method directly.96 /// </summary>97 /// <param name="row">The DataRow that was added.</param>98 74 protected virtual void RegisterDataRowEvents(DataRow row) { 99 75 row.NameChanged += new EventHandler(Row_NameChanged); … … 106 82 row.Values.CollectionReset += new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_CollectionReset); 107 83 } 108 109 /// <summary>110 /// Automatically called for every data row that is removed from the DataTable. Do111 /// not directly call this method.112 /// </summary>113 /// <param name="row">The DataRow that was removed.</param>114 84 protected virtual void DeregisterDataRowEvents(DataRow row) { 115 85 row.Values.ItemsAdded -= new CollectionItemsChangedEventHandler<IndexedItem<double>>(Values_ItemsAdded); … … 148 118 public void ShowConfiguration() { 149 119 if (Content != null) { 150 DataTableVisualPropertiesDialog dialog = new DataTableVisualPropertiesDialog(Content); 151 dialog.ShowDialog(); 120 using (DataTableVisualPropertiesDialog dialog = new DataTableVisualPropertiesDialog(Content)) { 121 dialog.ShowDialog(this); 122 } 152 123 } else MessageBox.Show("Nothing to configure."); 153 124 } 154 125 155 /// <summary>156 /// Add the DataRow as a series to the chart.157 /// </summary>158 /// <param name="row">DataRow to add as series to the chart.</param>159 126 protected virtual void AddDataRow(DataRow row) { 160 127 Series series = new Series(row.Name); … … 266 233 } 267 234 268 /// <summary>269 /// Set the Y Cursor interval to visible points of enabled series.270 /// </summary>271 235 protected virtual void UpdateYCursorInterval() { 272 236 double interestingValuesRange = ( … … 287 251 288 252 289 /// <summary>290 /// Remove the corresponding series for a certain DataRow.291 /// </summary>292 /// <param name="row">DataRow which series should be removed.</param>293 253 protected virtual void RemoveDataRow(DataRow row) { 294 254 Series series = chart.Series[row.Name]; … … 672 632 } 673 633 674 /// <summary>675 /// Determines whether a double value can be displayed (converted to Decimal and not an NaN).676 /// </summary>677 /// <param name="x">The number to check.</param>678 /// <returns><code>true</code> if the value can be safely shwon in the chart,679 /// <code>false</code> otherwise.</returns>680 634 protected static bool IsInvalidValue(double x) { 681 635 return double.IsNaN(x) || x < (double)decimal.MinValue || x > (double)decimal.MaxValue;
Note: See TracChangeset
for help on using the changeset viewer.