├── testOpenRoC ├── .gitignore ├── Properties │ └── AssemblyInfo.cs ├── ProcessOptionsUnitTests.cs ├── ExecutorServiceUnitTests.cs ├── ProcessManagerUnitTests.cs └── testOpenRoC.csproj ├── OpenRoC ├── Docs │ ├── main.png │ ├── process.png │ └── settings.png ├── phoenix.ico ├── FodyWeavers.xml ├── App.config ├── testProcessWindowed │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── Program.cs │ ├── MainForm.cs │ ├── MainForm.Designer.cs │ └── testProcessWindowed.csproj ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.resx │ └── Resources.Designer.cs ├── AboutDialog.cs ├── packages.config ├── Metrics │ ├── CpuCollector.cs │ ├── RamCollector.cs │ ├── GpuCollector.cs │ ├── Collector.cs │ └── Manager.cs ├── LogsDialog.cs ├── Resources │ └── OpenRoc.xml ├── Program.cs ├── OpenRoC.sln ├── LogsDialog.Designer.cs ├── SensuInterface.cs ├── SettingsDialog.cs ├── Logger.cs ├── AboutDialog.Designer.cs ├── Extensions.cs ├── OpenRoC.csproj ├── Settings.cs ├── SettingsDialog.Designer.cs ├── ProcessDialog.cs └── MainDialog.cs ├── LICENSE ├── libOpenRoC ├── NativeMethods.cs ├── Properties │ └── AssemblyInfo.cs ├── ExecutorService.cs ├── ProcessObserver.cs ├── Extensions.cs ├── libOpenRoC.csproj ├── ProcessHelper.cs ├── ProcessManager.cs ├── ProcessOptions.cs └── ProcessRunner.cs ├── README.md └── .gitignore /testOpenRoC/.gitignore: -------------------------------------------------------------------------------- 1 | /processes 2 | -------------------------------------------------------------------------------- /OpenRoC/Docs/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HeliosInteractive/OpenRoC/HEAD/OpenRoC/Docs/main.png -------------------------------------------------------------------------------- /OpenRoC/phoenix.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HeliosInteractive/OpenRoC/HEAD/OpenRoC/phoenix.ico -------------------------------------------------------------------------------- /OpenRoC/Docs/process.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HeliosInteractive/OpenRoC/HEAD/OpenRoC/Docs/process.png -------------------------------------------------------------------------------- /OpenRoC/Docs/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HeliosInteractive/OpenRoC/HEAD/OpenRoC/Docs/settings.png -------------------------------------------------------------------------------- /OpenRoC/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /OpenRoC/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /OpenRoC/testProcessWindowed/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /OpenRoC/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /OpenRoC/testProcessWindowed/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /OpenRoC/AboutDialog.cs: -------------------------------------------------------------------------------- 1 | namespace oroc 2 | { 3 | using System.Diagnostics; 4 | using System.Windows.Forms; 5 | 6 | public partial class AboutDialog : Form 7 | { 8 | 9 | public AboutDialog() 10 | { 11 | InitializeComponent(); 12 | } 13 | 14 | private void OnAboutRichTextBoxLinkClicked(object sender, LinkClickedEventArgs e) 15 | { 16 | using (Process.Start(e.LinkText)) { /* no-op */ } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /OpenRoC/testProcessWindowed/Program.cs: -------------------------------------------------------------------------------- 1 | namespace testProcessWindowed 2 | { 3 | using System; 4 | using System.Windows.Forms; 5 | 6 | static class Program 7 | { 8 | /// 9 | /// The main entry point for the application. 10 | /// 11 | [STAThread] 12 | static void Main() 13 | { 14 | Application.EnableVisualStyles(); 15 | Application.SetCompatibleTextRenderingDefault(false); 16 | Application.Run(new MainForm()); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /OpenRoC/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /OpenRoC/Metrics/CpuCollector.cs: -------------------------------------------------------------------------------- 1 | namespace oroc.Metrics 2 | { 3 | using OpenHardwareMonitor.Hardware; 4 | 5 | public class CpuCollector : ICollector 6 | { 7 | public CpuCollector(Computer computer) 8 | : base(GetFirstCpu(computer)) 9 | { /* no-op */ } 10 | 11 | private static IHardware GetFirstCpu(Computer computer) 12 | { 13 | IHardware defaultHardware = null; 14 | 15 | foreach (IHardware hardwareItem in computer.Hardware) 16 | { 17 | if (hardwareItem.HardwareType == HardwareType.CPU) 18 | { 19 | defaultHardware = hardwareItem; 20 | } 21 | } 22 | 23 | return defaultHardware; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /OpenRoC/Metrics/RamCollector.cs: -------------------------------------------------------------------------------- 1 | namespace oroc.Metrics 2 | { 3 | using OpenHardwareMonitor.Hardware; 4 | 5 | public class RamCollector : ICollector 6 | { 7 | public RamCollector(Computer computer) 8 | : base(GetFirstRam(computer)) 9 | { /* no-op */ } 10 | 11 | private static IHardware GetFirstRam(Computer computer) 12 | { 13 | IHardware defaultHardware = null; 14 | 15 | foreach (IHardware hardwareItem in computer.Hardware) 16 | { 17 | if (hardwareItem.HardwareType == HardwareType.RAM) 18 | { 19 | defaultHardware = hardwareItem; 20 | } 21 | } 22 | 23 | return defaultHardware; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /OpenRoC/Metrics/GpuCollector.cs: -------------------------------------------------------------------------------- 1 | namespace oroc.Metrics 2 | { 3 | using OpenHardwareMonitor.Hardware; 4 | 5 | public class GpuCollector : ICollector 6 | { 7 | public GpuCollector(Computer computer) 8 | : base(GetFirstGpu(computer)) 9 | { /* no-op */ } 10 | 11 | private static IHardware GetFirstGpu(Computer computer) 12 | { 13 | IHardware defaultHardware = null; 14 | 15 | foreach (IHardware hardwareItem in computer.Hardware) 16 | { 17 | if (hardwareItem.HardwareType == HardwareType.GpuAti || 18 | hardwareItem.HardwareType == HardwareType.GpuNvidia) 19 | { 20 | defaultHardware = hardwareItem; 21 | } 22 | } 23 | 24 | return defaultHardware; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /OpenRoC/LogsDialog.cs: -------------------------------------------------------------------------------- 1 | namespace oroc 2 | { 3 | using System; 4 | using System.Diagnostics; 5 | using System.Windows.Forms; 6 | 7 | public partial class LogsDialog : Form 8 | { 9 | public LogsDialog() 10 | { 11 | InitializeComponent(); 12 | 13 | if (LogTextBox.Handle != IntPtr.Zero) 14 | Logger.Configure(this, LogTextBox); 15 | } 16 | 17 | private void OnLogsDialogFormClosing(object sender, FormClosingEventArgs e) 18 | { 19 | if (e.CloseReason == CloseReason.UserClosing) 20 | { 21 | e.Cancel = true; 22 | Hide(); 23 | } 24 | } 25 | 26 | private void OnLogsDialogRichTextBoxLinkClicked(object sender, LinkClickedEventArgs e) 27 | { 28 | using (Process.Start(e.LinkText)) { /* no-op */ } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /OpenRoC/Resources/OpenRoc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |