C# structure for processes' control