public Window3() { InitializeComponent(); var data = DemoData.CreateColumnHeaderTankData(); int otherCount = new Random().Next(100) % 10; otherCount = 0; var viemModel = new ViewModeTest(); viemModel.ParamValues = data; viemModel.OtherCount = otherCount; this.DataContext = viemModel; ATimeline1.DataContext = viemModel; var viemModel2 = new ViewModeTest(); viemModel2.ParamValues = data; viemModel2.OtherCount = 1; ATimeline2.DataContext = viemModel2; var viemModel3 = new ViewModeTest(); viemModel3.ParamValues = data; viemModel3.OtherCount = 10; ATimeline3.DataContext = viemModel3; }
public CollectionlineWindow() { InitializeComponent(); var data = DemoData.CreateColumnHeaderTankData(); int otherCount = new Random().Next(100) % 10; otherCount = 6; var viemModel = new ViewModeTest(); viemModel.ParamValues = data; viemModel.OtherCount = 2; ATimeline2.DataContext = viemModel; ATimeline3.DataContext = viemModel; }