private void btnDcomBeign_Click(object sender, EventArgs e) { if (txtDcomSrc.Text.Trim() == "") { txtDcomSrc.Focus(); return; } if (txtDcomOut.Text.Trim() == "") { txtDcomOut.Focus(); return; } if (GifConvert.DecompressGif(txtDcomSrc.Text, txtDcomOut.Text)) { MessageBox.Show("OK"); } }
private void btnComBegin_Click(object sender, EventArgs e) { if (lvSrcFiles.Items.Count == 0) { return; } SFD.Filter = "Gif files(*.gif)|*.gif"; if (SFD.ShowDialog() == System.Windows.Forms.DialogResult.OK) { List <string> files = new List <string>(); foreach (ListViewItem item in lvSrcFiles.Items) { files.Add(item.Text); } if (GifConvert.CompressGif(files, SFD.FileName, int.Parse(cboTime.Text), repeat)) { MessageBox.Show("OK"); } } }