private void btnNext_Click(object sender, System.EventArgs e) { if (!System.IO.Directory.Exists(this.txt_Dir.Text)) { System.Windows.Forms.MessageBox.Show("指定したディレクトリは有効なディレクトリではありません。"); return; } EncInfo info = this.comboBox1.SelectedItem as EncInfo; if (info == null) { System.Windows.Forms.MessageBox.Show("文字コードが正しく選択されていません。"); return; } this.encoding = info.GetEncoding(); this.listView1.Items.Clear(); this.candidates = new Gen::List <RenameItem>(); search_dir(new System.IO.DirectoryInfo(this.txt_Dir.Text)); this.listView1.Items.AddRange(this.candidates.ToArray()); }
internal static int compare(EncInfo e1, EncInfo e2) { return(e1.ToString().CompareTo(e2.ToString())); }