これはtimer1
tick イベントのコードです:
file_indxs = file_indxs - 1;
if (file_indxs < 0)
{
file_indxs = file_array.Length - 1;
}
file_array.Length - 1
は、配列の最後のファイルから始まる配列の終わりです。
しかし、私はやりたい:
file_indxs = file_indxs + 1;
if (file_indxs == 0)
{
file_indxs = the beginning of the array. not the Length - 1
}