private void Form2_Load(object sender, EventArgs e) { dataGridViewTextBoxColumn = new DataGridViewTextBoxColumn { HeaderText = "Time", ReadOnly = true }; dataGridViewCheckBoxColumn = new DataGridViewCheckBoxColumn { HeaderText = "Include?", Width = 80, TrueValue = true, FalseValue = false }; dataGridViewImageColumn = new DataGridViewImageColumn { HeaderText = "Image", Width = 200, ImageLayout = DataGridViewImageCellLayout.Zoom }; dataGridView1.Columns.Add(dataGridViewTextBoxColumn); dataGridView1.Columns.Add(dataGridViewCheckBoxColumn); dataGridView1.Columns.Add(dataGridViewImageColumn); voVideoSaveable vPVideoSaveable = new voVideoSaveable(Filename); kfi = vPVideoSaveable.KeyFramesIndex(); dataGridView1.RowTemplate.Height = 100; if (System.IO.File.Exists(vPVideoSaveable.UFile)) { ukfi = voSave.DeserializeObject <List <float> >(vPVideoSaveable.UFile); foreach (float f in kfi) { dataGridView1.Rows.Add(f.ToString(), ukfi.Contains(f), vPVideoSaveable.VideoImage(f)); } } else { foreach (float f in kfi) { dataGridView1.Rows.Add(f.ToString(), true, vPVideoSaveable.VideoImage(f)); } } }
public void GetFrames() { lVideoSaveable.KeyFramesIndex(); }