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
|
Line | |
---|
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 {
|
---|
10 | public interface IJsonItemVM : INotifyPropertyChanged, IDisposable
|
---|
11 | {
|
---|
12 | event Action ItemChanged;
|
---|
13 |
|
---|
14 | Type TargetedJsonItemType { get; }
|
---|
15 |
|
---|
16 | UserControl Control { get; }
|
---|
17 | bool Selected { get; set; }
|
---|
18 |
|
---|
19 | string Name { get; set; }
|
---|
20 |
|
---|
21 | string Description { get; set; }
|
---|
22 |
|
---|
23 | TreeNode TreeNode { get; set; }
|
---|
24 |
|
---|
25 | TreeView TreeView { get; set; }
|
---|
26 | IJsonItem Item { get; set; }
|
---|
27 |
|
---|
28 | }
|
---|
29 |
|
---|
30 | public interface IJsonItemVM<JsonItemType> : IJsonItemVM
|
---|
31 | where JsonItemType : IJsonItem
|
---|
32 | {
|
---|
33 | new JsonItemType Item { get; set; }
|
---|
34 | }
|
---|
35 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.