var ServiceVM = function(model)
{
	var self = this;
	
	self.Name = ko.observable(model.ServiceName);
	self.Status = ko.observable(model.ServiceStatus)
	self.Desc = ko.observable(model.ServiceDesc);
	
    self.IsActive = ko.observable(model.IsActive);
    self.IsRunning = ko.observable(model.IsRunning);
    self.IsLoaded = ko.observable(model.IsLoaded);
	
	
	self.RunService = function()
	{
		alert("run !");
		self.IsRunning(true);
	}
	
	self.StopService = function()
	{
		alert("stop !");
		self.IsRunning(false);
	}
	
	self.ToggleService = function()
	{
		if(self.IsRunning())
			self.StopService();
		else
			self.RunService();		
	}
	
}

@@ -362,16 +362,259 @@
 d);%0D%0A%09%0D%0A
+%09self.Waiting = ko.observable(false);%0D%0A%09%0D%0A%09self.Refresh = function()%0D%0A%09%7B%0D%0A%09%09self.Waiting(true);%0D%0A%09%09setTimeout(self.EndRefresh, 1000);%0D%0A%09%7D%0D%0A%09%0D%0A%09self.EndRefresh = function()%0D%0A%09%7B%0D%0A%09%09self.Waiting(false);%0D%0A%09%09setTimeout(self.Refresh, 5000);%0D%0A%09%7D%0D%0A%09%0D%0A
 %09%0D%0A%09self

Update ServiceVM.js