+++ /dev/null
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.Drawing;\r
-using System.Windows.Forms;\r
-using FDK;\r
-\r
-namespace DTXCreator.WAV_BMP_AVI\r
-{\r
- internal class CBMP\r
- {\r
- public bool bテクスチャ;\r
- public Color col背景色 = SystemColors.Window;\r
- public Color col文字色 = SystemColors.WindowText;\r
- public int nBMP番号1to1295 = 1;\r
- public string strファイル名 = "";\r
- public string strラベル名 = "";\r
-\r
- public bool b内容が同じ_BMP番号を除くwith( CBMP bc )\r
- {\r
- return ( ( this.strラベル名.Equals( bc.strラベル名 ) && this.strファイル名.Equals( bc.strファイル名 ) ) && ( ( ( this.bテクスチャ == bc.bテクスチャ ) && ( this.col文字色 == bc.col文字色 ) ) && ( this.col背景色 == bc.col背景色 ) ) );\r
- }\r
- public bool b内容が同じwith( CBMP bc )\r
- {\r
- return ( ( ( this.strラベル名.Equals( bc.strラベル名 ) && ( this.nBMP番号1to1295 == bc.nBMP番号1to1295 ) ) && ( this.strファイル名.Equals( bc.strファイル名 ) && ( this.bテクスチャ == bc.bテクスチャ ) ) ) && ( ( this.col文字色 == bc.col文字色 ) && ( this.col背景色 == bc.col背景色 ) ) );\r
- }\r
- public void tコピーfrom( CBMP bc )\r
- {\r
- this.bテクスチャ = bc.bテクスチャ;\r
- this.strラベル名 = bc.strラベル名;\r
- if( ( bc.nBMP番号1to1295 < 1 ) || ( bc.nBMP番号1to1295 > 36 * 36 - 1 ) )\r
- {\r
- throw new Exception( "BMP番号が範囲を超えています。-> [" + this.nBMP番号1to1295 + "]" );\r
- }\r
- this.nBMP番号1to1295 = bc.nBMP番号1to1295;\r
- this.strファイル名 = bc.strファイル名;\r
- this.col背景色 = bc.col背景色;\r
- this.col文字色 = bc.col文字色;\r
- }\r
- public void tコピーfrom( ListViewItem lvi )\r
- {\r
- this.bテクスチャ = lvi.SubItems[ 0 ].Text.Equals( "o" );\r
- this.strラベル名 = lvi.SubItems[ 1 ].Text;\r
- this.nBMP番号1to1295 = C変換.n36進数2桁の文字列を数値に変換して返す( lvi.SubItems[ 2 ].Text );\r
- this.strファイル名 = lvi.SubItems[ 3 ].Text;\r
- this.col背景色 = lvi.BackColor;\r
- this.col文字色 = lvi.ForeColor;\r
- }\r
- public void tコピーto( ListViewItem lvi )\r
- {\r
- lvi.SubItems[ 0 ].Text = this.bテクスチャ ? "o" : "";\r
- lvi.SubItems[ 1 ].Text = this.strラベル名;\r
- lvi.SubItems[ 2 ].Text = C変換.str数値を36進数2桁に変換して返す( this.nBMP番号1to1295 );\r
- lvi.SubItems[ 3 ].Text = this.strファイル名;\r
- lvi.ForeColor = this.col文字色;\r
- lvi.BackColor = this.col背景色;\r
- }\r
- public ListViewItem t現在の内容から新しいListViewItemを作成して返す()\r
- {\r
- ListViewItem item = new ListViewItem( new string[] { this.bテクスチャ ? "o" : "", this.strラベル名, C変換.str数値を36進数2桁に変換して返す( this.nBMP番号1to1295 ), this.strファイル名 } );\r
- item.ForeColor = this.col文字色;\r
- item.BackColor = this.col背景色;\r
- return item;\r
- }\r
- }\r
-}\r