public void PuTong_Click(object sender, MouseButtonEventArgs e) { PointChart chart = new PointChart(); try { putongpoint clicked_Label = (putongpoint)sender; double position = double.Parse(clicked_Label.key); chart.Reset_Position(position); chart.Topmost = true; chart.Show(); ReSet(thislist); } catch { } }
public void Click(object sender, MouseButtonEventArgs e) { PointChart chart = new PointChart(); try { Label clicked_Label = (Label)sender; double position = double.Parse(clicked_Label.Content.ToString()); chart.Reset_Position(position); chart.Topmost = true; chart.Show(); // chart.ShowDialog(); ReSet(thislist); } catch { } }