/// <summary> /// /// </summary> public void GetAutoTrack() { WipComponent wipComponent = new WipComponent(); WIPFeturnHold wIPFeturnHold = new WIPFeturnHold(); WipQtimeHold wipQtimeHold = new WipQtimeHold(); TrackIn trackIn = new TrackIn(); trackIn.Decorate(wipComponent); wipQtimeHold.Decorate(trackIn); wIPFeturnHold.Decorate(wipQtimeHold); wIPFeturnHold.Operation(); }
public void CreateTrack(string s) { ITrack track; if (s.Equals("S", StringComparison.OrdinalIgnoreCase)) { track = new TrackIn(); track.trackIn(); } //switch (s) //{ // case "s": track = new QtimeTrack(); track.trackIn(); break; // case "t": track = new TrackIn(); track.trackIn(); break; //} }