介绍 (Introduction)
I created Window Tiler out of the need to monitor multiple running applications.
我创建Window Tiler是出于监视多个正在运行的应用程序的需要。
For example, if I have to run a process that starts a bunch of processes, I can see each window as it is running because Window Tiler constantly retiles as application windows open and closes.
例如,如果我必须运行一个启动一堆进程的进程,则可以看到每个窗口正在运行,因为Window Tiler随着应用程序窗口的打开和关闭而不断地变化。
示范执行 (Demo Execution)
C#代码 (The C# Code)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Tiler
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}
private void tmrTiler_Tick(object sender, EventArgs e)
{
try
{
Shell32.Shell shell = new Shell32.Shell();
if (this.chkTileWindowsHorizontally.Checked)
{
shell.TileHorizontally();
}
else if (this.chkTileWindowsVertically.Checked)
{
shell.TileVertically();
}
}
catch
{
}
}
private void butStart_Click(object sender, EventArgs e)
{
tmrTiler.Interval = (int)(numTimer.Value * 1000);
tmrTiler.Enabled = true;
}
private void butStop_Click(object sender, EventArgs e)
{
tmrTiler.Enabled = false;
}
}
}
通过代码生成应用程序(Visual Studio 2017) (Building the application from Code (Visual Studio 2017))
1) Download the Visual Studio 2017 project from https://bitbucket.org/svermaak/tiler/downloads/
1)从https://bitbucket.org/svermaak/tiler/downloads/下载Visual Studio 2017项目
2) Using your favourite compression tool extract the downloaded ZIP file to a convenient location, typically your Visual Studio 2017 project folder under "My Documents"
2)使用您喜欢的压缩工具将下载的ZIP文件提取到一个方便的位置,通常是“我的文档”下的Visual Studio 2017项目文件夹
3) Open the solution file (Tiler.sln) in Visual Studio 2017 and build project (F6 or Build Solution from Build menu)
3)在Visual Studio 2017中打开解决方案文件(Tiler.sln)并生成项目(从Build菜单中选择F6或Build Solution)
4) You can find the compiled EXE from the BIN folder of the project folder
4)您可以从项目文件夹的BIN文件夹中找到已编译的EXE
下载EXE (Download The EXE)
If you do not have Visual Studio 2017 or just want the EXE, you can download it from http://blog.ittelligence.com/wp-content/uploads/2018/03/Tiler.zip
如果您没有Visual Studio 2017或仅需要EXE,则可以从http://blog.ittelligence.com/wp-content/uploads/2018/03/Tiler.zip下载它
Please do not forget to press the "Thumb's Up" button if you think this article was helpful and valuable for EE members.
如果您认为本文对EE成员有用且有价值,请不要忘记按“ Thumb's Up”按钮。
It also provides me with positive feedback. Thank you!
它还为我提供了积极的反馈。 谢谢!
翻译自: https://www.experts-exchange.com/articles/31834/Window-Tiler.html