示例#1
0
        public void GetProcesses_ReturnsNonEmptyList()
        {
            var pv = new ProcessViewer();

            var processes = pv.GetProcesses();

            Assert.NotEmpty(processes);
        }
示例#2
0
        public void GetCurrentProcess_ReturnsNonEmptyString()
        {
            var pv = new ProcessViewer();

            var process = pv.GetCurrentProcess();

            Assert.NotNull(process);
        }
示例#3
0
 public override void Execute(IPluginHost pluginHost, DroidExplorer.Core.IO.LinuxDirectoryInfo currentDirectory, string[] args)
 {
     ProcessViewer.StartPosition = FormStartPosition.Manual;
     ProcessViewer.Left          = this.PluginHost.Right;
     ProcessViewer.Top           = this.PluginHost.Top;
     if (!ProcessViewer.Visible)
     {
         ProcessViewer.Show(this.PluginHost.GetHostWindow( ));
     }
 }
示例#4
0
        static void Main(string[] args)
        {
            var processViewer = new ProcessViewer();

            var processes = processViewer.GetProcesses();

            foreach (var process in processes)
            {
                Console.WriteLine(process);
            }
        }