private void RibbonButtonShowChart2_Click(object sender, RoutedEventArgs e) { WindowChart2 windowChart2 = new WindowChart2(); windowChart2.Id = this.Id; windowChart2.EndTime = this.EndTime; windowChart2.StartTime = this.StartTime; windowChart2.TitleFoSensor = this.TitleFoSensor; windowChart2.Show(); }
private void RibbonButtonShowChart2_Click(object sender, RoutedEventArgs e) { if (LastSelected != null && LastSelected.IsSelected == true) { WindowChart2 windowChart2 = new WindowChart2(); windowChart2.Id = LastSelected.Id; windowChart2.EndTime = DateTime.Now; windowChart2.StartTime = DateTime.Now - new TimeSpan(1, 0, 0, 0); windowChart2.TitleFoSensor = LastSelected.Title; windowChart2.Show(); } }