Code Snippet
private void btnOk_Click(object sender, EventArgs e)
{
CheckingFieldsResult result = this.CheckFields();
this.DoEdit(result);
}
private void DoEdit(CheckingFieldsResult result)
{
switch (result)
{
case CheckingFieldsResult.DurationError:
MessageBox.Show("Possible Errors:\r\n\t1:Duration less than (current position- trimIn+ 5)\r\n\t2:Duration more than TotalFrames\r\n\t3:Duration = trimIn", "ICTechPlayer", MessageBoxButtons.OK, MessageBoxIcon.Information);
break;
case CheckingFieldsResult.TrimInError:
MessageBox.Show("TrimIn must be more than zero, and less than (trimOut- duration- 5", "ICTechPlayer", MessageBoxButtons.OK, MessageBoxIcon.Information);
break;