+++ /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 CAVI\r
- {\r
- public Color col背景色 = SystemColors.Window;\r
- public Color col文字色 = SystemColors.WindowText;\r
- public int nAVI番号1to1295 = 1;\r
- public string strファイル名 = "";\r
- public string strラベル名 = "";\r
-\r
- public bool b内容が同じ_AVI番号を除くwith( CAVI ac )\r
- {\r
- return ( ( this.strラベル名.Equals( ac.strラベル名 ) && this.strファイル名.Equals( ac.strファイル名 ) ) && ( ( this.col文字色 == ac.col文字色 ) && ( this.col背景色 == ac.col背景色 ) ) );\r
- }\r
- public bool b内容が同じwith( CAVI ac )\r
- {\r
- return ( ( this.strラベル名.Equals( ac.strラベル名 ) && ( this.nAVI番号1to1295 == ac.nAVI番号1to1295 ) ) && ( ( this.strファイル名.Equals( ac.strファイル名 ) && ( this.col文字色 == ac.col文字色 ) ) && ( this.col背景色 == ac.col背景色 ) ) );\r
- }\r
- public void tコピーfrom( CAVI ac )\r
- {\r
- this.strラベル名 = ac.strラベル名;\r
- if( ( ac.nAVI番号1to1295 < 1 ) || ( ac.nAVI番号1to1295 > 36 * 36 - 1 ) )\r
- {\r
- throw new Exception( "AVI番号が範囲を超えています。-> [" + this.nAVI番号1to1295 + "]" );\r
- }\r
- this.nAVI番号1to1295 = ac.nAVI番号1to1295;\r
- this.strファイル名 = ac.strファイル名;\r
- this.col背景色 = ac.col背景色;\r
- this.col文字色 = ac.col文字色;\r
- }\r
- public void tコピーfrom( ListViewItem lvi )\r
- {\r
- this.strラベル名 = lvi.SubItems[ 0 ].Text;\r
- this.nAVI番号1to1295 = C変換.n36進数2桁の文字列を数値に変換して返す( lvi.SubItems[ 1 ].Text );\r
- this.strファイル名 = lvi.SubItems[ 2 ].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.strラベル名;\r
- lvi.SubItems[ 1 ].Text = C変換.str数値を36進数2桁に変換して返す( this.nAVI番号1to1295 );\r
- lvi.SubItems[ 2 ].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.strラベル名, C変換.str数値を36進数2桁に変換して返す( this.nAVI番号1to1295 ), this.strファイル名 } );\r
- item.ForeColor = this.col文字色;\r
- item.BackColor = this.col背景色;\r
- return item;\r
- }\r
- }\r
-}\r