/// <summary> /// A dropdown will appear when user click on a template cell /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FoldersListView_CellEditStarting(object sender, CellEditEventArgs e) { try { if (e.Column == deleteColumn) { e.Cancel = true; var confirmDelete = _messageBoxService.AskForConfirmation(PluginResources.RemoveWatchFolder_Message); if (confirmDelete) { RemoveWatchFolders(e); } } if (e.Column != templateColumn) { return; } var cb = new ComboBox { Bounds = e.CellBounds, Font = ((ObjectListView)sender).Font, DropDownStyle = ComboBoxStyle.DropDownList }; DisplayCustomTemplates(cb, e); } catch (Exception exception) { Log.Logger.Error($"FoldersListView_CellEditStarting: {exception.Message}\n {exception.StackTrace}"); } }