client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProductionPartControler.xaml.cs
--- a/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProductionPartControler.xaml.cs Wed Jan 27 10:55:59 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProductionPartControler.xaml.cs Thu Feb 04 16:38:04 2010 +0100
@@ -130,15 +130,21 @@
if(_activated)
{
- VisualStateManager.GoToState(this,"Finished",true);
- if (HeaderProductionPartFinished!=null)
- {
- HeaderProductionPartFinished(this, new HeaderProductionPartControlerEventArgs(sender));
- }
- _finished=true;
-
+ Clicked(this, new EventArgs());
+
+
}
}
+ public void Finish()
+ {
+ VisualStateManager.GoToState(this,"Finished",true);
+ if (HeaderProductionPartFinished!=null)
+ {
+ HeaderProductionPartFinished(this, new HeaderProductionPartControlerEventArgs(this));
+ }
+ _finished = true;
+ }
+ public event EventHandler Clicked;
public void Select()
{
if (_activated && !_finished)