2014-12-01から1ヶ月間の記事一覧

Qt 5.4インストール(for Mac OS X)

Qt

http://www.qt.io/download-open-source/ここからqt-opensource-mac-x64-1.6.0-7-online.dmgをダウンロードしてインストール。

QCADをインストールしてみる

http://www.qcad.org/en/DXF Lib http://www.ribbonsoft.com/en/what-is-dxflib

ウィンドウ位置・サイズを記憶する

プロジェクトのプロパティで次のように設定する。 復元 private void frmHome_Load(object sender, EventArgs e) { //ウィンドウの位置、サイズを復元 Bounds = Properties.Settings.Default.Bounds; WindowState = Properties.Settings.Default.WindowState…

C#での一般的なシングルトンの実装

staticコンストラクタを使用する。 public class MySingleton { private static readonly MySingleton theOneAndOnly; static MySingleton() { theOneAndOnly = new MySingleton(); } public static MySingleton TheOnly { get { return theOneAndOnly; } } …

標準的なSystem.Object.Equals()のオーバーライド実装

public class Foo : IEquatable<Foo> { public override bool Equals(object right) { //nullチェック if (Object.ReferenceEquals(right, null)) return false; if (Object.ReferenceEquals(this, right)) return true; if (this.GetType() != right.GetType()) </foo>…