This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMs2Model.cs
68 lines (64 loc) · 2.16 KB
/
Ms2Model.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BUDDY
{
class Ms2Model : INotifyPropertyChanged
{
public Ms2Model()
{
this.PopulateData();
//adducts = PolarityAdductRepository.GetAdduct();
//PolarityList = new List<string>(Adducts.Keys);
}
/// <summary>
/// Gets or sets the orders details.
/// </summary>
/// <value>The orders details.</value>
private ObservableCollection<Ms2Utility> ms2s;
public ObservableCollection<Ms2Utility> MS2s
{
get
{
return ms2s;
}
set
{
ms2s = value;
RaisePropertyChanged("MS2s");
}
}
//Dictionary<string, ObservableCollection<AdductDetails>> adducts;
//public Dictionary<string, ObservableCollection<AdductDetails>> Adducts
//{
// get
// {
// return adducts;
// }
// set
// {
// adducts = value;
// RaisePropertyChanged("Adducts");
// }
//}
//public List<string> PolarityList { get; set; }
public void PopulateData()
{
ms2s = new ObservableCollection<Ms2Utility>();
//ms2s.Add(new Ms2Utility(true, 1, "100.0104", "200", 001, "open.png", "P"));
//ms2s.Add(new Ms2Utility(true, 2, "100.0104", "200", 001, "cancelled.png", "P"));
//ms2s.Add(new Ms2Utility(false, 3, "100.0104", "200", 101, "complete.png", "N"));
//ms2s.Add(new Ms2Utility(false, 4, "100.0104", "200", 101, "progress.png", "N"));
}
public event PropertyChangedEventHandler PropertyChanged;
public void RaisePropertyChanged(string propName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propName));
}
}
}