[go: up one dir, main page]

Menu

[6396b6]: / FileHandler.cs  Maximize  Restore  History

Download this file

42 lines (40 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace Clock_Alert
{
class FileHandler
{
/*private string path;
public FileHandler()
{
path = null;
}
public void setSound(string path)
{
if(File.Exists(path))
{
Properties.Settings.Default.soundPath=path;
Properties.Settings.Default.playDefault=false;
}
else
Properties.Settings.Default.playDefault=true;
}
public string getSound()
{
path = Properties.Settings.Default.soundPath;
if (File.Exists(path))
return path;
else
{
Properties.Settings.Default.playDefault = true;
return "null";
}
}
public void backUpLastUsed(string path)
{
Properties.Settings.Default.LastUsed = Properties.Settings.Default.soundPath;
}*/
}
}