|
#region Using Statements
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
#endregion Using Statements
namespace AViD
{
/// <summary>
/// The AnimatedGifSettings form allows the user to provide the number of
/// frames and the delay between the frames for the animated gif.
/// </summary>
public partial class AnimatedGifSettings : Form
{
#region Constructor
/// <summary>
/// Creates a new instance of the <see cref="AnimatedGifSettings"/>.
/// </summary>
public AnimatedGifSettings()
{
InitializeComponent();
}
#endregion Constructor
#region Events/Delegates
/// <summary>
/// Handles the event when the user clicks the generate button.
/// </summary>
/// <param name="sender">The sender of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> of the event.</param>
private void btnGenerate_Click(object sender, EventArgs e)
{
this.DialogResult = this.saveGifFileDialog.ShowDialog();
}
#endregion Events/Delegates
#region Public Properties
/// <summary>
/// Gets the file name of the animated gif.
/// </summary>
public string FileName
{
get
{
return this.saveGifFileDialog.FileName;
}
}
/// <summary>
/// Gets the delay in milliseconds between frames of the animated gif.
/// </summary>
public int DelayBetweenFrames
{
get
{
return (int)this.nudDelayBetweenFrames.Value;
}
}
/// <summary>
/// Gets the number of frames in the animated gif.
/// </summary>
public int NumberOfFrames
{
get
{
return (int)this.nudNumberOfFrames.Value;
}
}
#endregion Public Properties
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.
So..If you're not moving forward, you're moving backwards.