private void RefreshTemplates()
{
this.comboBoxTemplate.Items.Clear();
this.comboBoxTemplate.Items.Add("Empty");
string dir = PathHelper.ScriptTemplateDirectory;
if (Directory.Exists(dir))
{
this._templates = Directory.GetFiles(dir, "*.rb");
foreach (string filename in this._templates)
this.comboBoxTemplate.Items.Add(Path.GetFileNameWithoutExtension(filename));
}
}