示例#1
0
        public MultipleTrimForm(MultipleTrimFilter filterToEdit = null)
        {
            InitializeComponent();

            if (filterToEdit != null)
            {
                foreach (TrimFilter trim in filterToEdit.Trims)
                {
                    listViewTrims.Items.Add(trim.ToString()).Tag = trim;
                }
            }
        }
示例#2
0
        public MultipleTrimForm(MultipleTrimFilter filterToEdit = null)
        {
            InitializeComponent();

            if (filterToEdit != null)
            {
                foreach (TrimFilter trim in filterToEdit.Trims)
                {
                    listViewTrims.Items.Add(trim.ToString()).Tag = trim;
                }
            }
        }
示例#3
0
 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;
 }
示例#4
0
        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);
        }
示例#5
0
        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);
        }