Last change
on this file since 17712 was
17473,
checked in by dpiringe, 5 years ago
|
#3026:
- refactored inheritance structure of json items, now the default JsonItem is an abstract class without properties Value and Range -> splitted up into new interfaces
- updated view models for new json item structure
- updated SingleLineArrayJsonWriter
|
File size:
812 bytes
|
Rev | Line | |
---|
[17446] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Linq;
|
---|
| 5 | using System.Text;
|
---|
| 6 | using System.Threading.Tasks;
|
---|
| 7 | using System.Windows.Forms;
|
---|
| 8 |
|
---|
| 9 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
[17473] | 10 | public interface IJsonItemVM : INotifyPropertyChanged, IDisposable
|
---|
| 11 | {
|
---|
[17446] | 12 | event Action ItemChanged;
|
---|
| 13 |
|
---|
[17473] | 14 | Type TargetedJsonItemType { get; }
|
---|
[17446] | 15 |
|
---|
[17471] | 16 | UserControl Control { get; }
|
---|
[17446] | 17 | bool Selected { get; set; }
|
---|
| 18 |
|
---|
| 19 | string Name { get; set; }
|
---|
| 20 |
|
---|
| 21 | string Description { get; set; }
|
---|
[17471] | 22 |
|
---|
[17446] | 23 | TreeNode TreeNode { get; set; }
|
---|
| 24 |
|
---|
| 25 | TreeView TreeView { get; set; }
|
---|
[17473] | 26 | IJsonItem Item { get; set; }
|
---|
| 27 |
|
---|
[17446] | 28 | }
|
---|
[17473] | 29 |
|
---|
| 30 | public interface IJsonItemVM<JsonItemType> : IJsonItemVM
|
---|
| 31 | where JsonItemType : IJsonItem
|
---|
| 32 | {
|
---|
| 33 | new JsonItemType Item { get; set; }
|
---|
| 34 | }
|
---|
[17446] | 35 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.