string GetDirectoryName(string dirId) { foreach (DeployDirectoryInfo info in DeployService.GetDeployDirectoryInfo()) { if (dirId == info.Id) { return(info.Description); } } return(""); }
public void Initialize(EditSession session) { values = DeployService.GetDeployDirectoryInfo(); ebox = new Gtk.EventBox(); ebox.Show(); PackStart(ebox, true, true, 0); combo = Gtk.ComboBoxEntry.NewText(); combo.Changed += combo_Changed; combo.Entry.IsEditable = false; combo.Entry.HasFrame = false; combo.Entry.HeightRequest = combo.SizeRequest().Height; combo.Show(); ebox.Add(combo); foreach (DeployDirectoryInfo value in values) { combo.AppendText(value.Description); } }