public MultipleTrimForm(MultipleTrimFilter filterToEdit = null) { InitializeComponent(); if (filterToEdit != null) { foreach (TrimFilter trim in filterToEdit.Trims) { listViewTrims.Items.Add(trim.ToString()).Tag = trim; } } }
internal static void ResetFilters() { Caption = null; Crop = null; Deinterlace = null; Denoise = null; Dub = null; Levels = null; MultipleTrim = null; Overlay = null; Resize = null; Reverse = null; Subtitle = null; Trim = null; }
private void buttonConfirm_Click(object sender, EventArgs e) { var Trims = new List <TrimFilter>(); foreach (ListViewItem item in listViewTrims.Items) { Trims.Add(item.Tag as TrimFilter); } if (Trims.Count == 0) { return; } DialogResult = DialogResult.OK; GeneratedFilter = new MultipleTrimFilter(Trims); }
private void buttonConfirm_Click(object sender, EventArgs e) { var Trims = new List<TrimFilter>(); foreach (ListViewItem item in listViewTrims.Items) { Trims.Add(item.Tag as TrimFilter); } if (Trims.Count == 0) return; DialogResult = DialogResult.OK; GeneratedFilter = new MultipleTrimFilter(Trims); }