public Synthesis() { reactants = new ObservableCollection<Compound>(); reactants.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(reactants_CollectionChanged); reagents = new ObservableCollection<Compound>(); reagents.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(reagents_CollectionChanged); products = new ObservableCollection<Compound>(); products.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(products_CollectionChanged); procedure = new Procedure(this, string.Empty); }
public Synthesis(string name, int projectID) { reactants = new ObservableCollection<Compound>(); reactants.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(reactants_CollectionChanged); reagents = new ObservableCollection<Compound>(); reagents.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(reagents_CollectionChanged); products = new ObservableCollection<Compound>(); products.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(products_CollectionChanged); procedure = new Procedure(this, string.Empty); Name = name; ProjectID = projectID; PreviousStep = null; NextStep = null; }