OWtrack/OWTrack/Tracker.cs
2018-07-13 05:13:05 +03:00

32 lines
792 B
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OWTrack
{
class Tracker
{
private int wins, losses = 0;
public void Track()
{
}
public bool owRunning()
{
bool isRunning = Process.GetProcessesByName("Overwatch")
.FirstOrDefault(p => p.MainModule.FileName.StartsWith(@"D:\Hesham\installed Games\Overwatch")) != default(Process);
return isRunning;
}
public void addWin() { wins++; }
public void addLoss() { losses++; }
public int GetWins() { return wins; }
public int GetLosses() { return losses; }
}
}