|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Reminder_v1._0
{
public partial class frmWarn : Form
{
OtherFunctions functions = new OtherFunctions();
public frmWarn(string Note,string Sound)
{
InitializeComponent();
note = Note;
snd = Sound;
}
public string note { get; set; }
public string snd { get; set; }
#region Form Functions
private void frmWarn_Load(object sender, EventArgs e)
{
richNote.Text = note;
richNote.ReadOnly = true;
if (snd.Contains(".wav"))
functions.PlayStopSound(snd, true);
else
functions.OpenFileToPlay(snd);
}
private void frmWarn_FormClosed(object sender, FormClosedEventArgs e)
{
if (snd != "" && snd.Contains(".wav"))
functions.PlayStopSound(snd, false);
else if (snd != "" && snd.Contains(".mp3"))
functions.StopSound();
}
#endregion
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.