With the below code you will be able to access your local service from a win form.
using System.ServiceProcess;
ServiceController myService = new ServiceController();
myService.ServiceName = "ImapiService";
string svcStatus = myService.Status.ToString();
if (svcStatus == "Running")
{
myService.Stop();
}
else if(svcStatus == "Stopped")
{
myService.Start();
}
else
{
myService.Stop();
}
This article may help you to take a backup of sql database with C# code.
How create Backup and Restore database in c# window application[
^]
Write code to backup the database in service.
Happy Coding.
[Edit]Code block added[/Edit]