client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs
--- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Fri Jan 08 11:33:24 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Thu Jan 14 16:39:50 2010 +0100
@@ -19,10 +19,7 @@
{
public static double ScaleTime
{
- get
- ;
-
-
+ get;
set;
}
public ProductionTimeLine()
@@ -32,7 +29,6 @@
InitializeComponent();
Commands.ProductionTimeLine.EditorPartSelected.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(EditorPartSelected_Executed);
Commands.ProductionView.VideoRecordUpdated.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(VideoRecordUpdated_Executed);
- Commands.Action.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(Action_Executed);
TimeSlider.MouseLeftButtonUp += new MouseButtonEventHandler(TimeSlider_MouseLeftButtonUp);
//TimeSlider.ValueChanged += new RoutedPropertyChangedEventHandler<double>(TimeSlider_ValueChanged);
TimeSlider.Maximum = TimeSlider.ActualWidth / ProductionTimeLine.ScaleTime;
@@ -67,13 +63,8 @@
{
UpdateElements();
}
-
+ private double _sumOfLengh=0;
- void Action_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
- {
- AddSequenceButton.Content = ((MouseEventArgs)e.Parameter).GetPosition(this).X;
- }
- private double _sumOfLengh=0;
public void UpdateElements()
{
TimeSlider.Maximum = TimeSlider.ActualWidth / ProductionTimeLine.ScaleTime;