This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
namespace Workaholism.IO | |
{ | |
/// <summary> | |
/// CSVファイル出力クラス。 | |
/// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.Text; | |
using System.Xml; | |
/// <summary> | |
/// MSBuildのパス。 | |
/// </summary> | |
private const string MSBuildPath = @"C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe"; | |
/// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Drawing; | |
using System.Drawing.Imaging; | |
/// <summary> | |
/// 半透明のイメージを生成する。 | |
/// </summary> | |
/// <param name="sourceImage">元イメージ。</param> | |
/// <returns>半透明化したイメージ。</returns> | |
public static Image CreateAlphaImage(Image sourceImage) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Drawing; | |
/// <summary> | |
/// イメージをマージする。 | |
/// </summary> | |
/// <param name="sourceImage">元イメージ。</param> | |
/// <param name="overlayImage">オーバーレイするイメージ。</param> | |
/// <returns>マージしたイメージ。</returns> | |
public static Image MargeImage(Image sourceImage, Image overlayImage) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Windows.Forms; | |
/// <summary> | |
/// コンテナを考慮してアクティブなコントロールを取得する。 | |
/// </summary> | |
/// <param name="container">コンテナ。</param> | |
/// <returns>アクティブなコントロール。</returns> | |
public static Control GetActiveControl(IContainerControl container) | |
{ | |
if (container.ActiveControl is IContainerControl) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Windows.Forms; | |
/// <summary> | |
/// コントロール上にマウスカーソルが含まれるかどうかを判断する。 | |
/// </summary> | |
/// <param name="control">コントロール。</param> | |
/// <returns>コントロール上にマウスカーソルが含まれるかどうか。</returns> | |
public static bool ContainsMouseCursor(Control control) | |
{ | |
return control.ClientRectangle.Contains(control.PointToClient(Cursor.Position)); |