hi mate! i'm showing just a part of my source code. i need to pass the 'GetSeconds' variable to my SqlDB. can somebody show me how to pass it? what should i need to add in? thanks for the kindly help..
namespace test
{
public partial class test : Form
{
private long GetSeconds(int hour, int minutes)
{
if ((hour != 0) && (minutes!=0))
return ((hour*3600) + (minutes * 60));
else if (hour != 0)
return (hour * 60 * 60);
else
return (minutes * 60);
}
}
}
namespace test
{
class SqlDB
{
private void RecoverSchedule ()
{
switch (Convert.ToInt3 2(myReader.GetV alue(myReader.G etOrd inal("Interval_ Type"))))
{
case 1:
Interval = GetSeconds(0, Convert.ToInt32 (myReader.GetVa lue(myReader.Ge tOrdi nal("Interval_T ime"))));
break;
}
}
}
namespace test
{
public partial class test : Form
{
private long GetSeconds(int hour, int minutes)
{
if ((hour != 0) && (minutes!=0))
return ((hour*3600) + (minutes * 60));
else if (hour != 0)
return (hour * 60 * 60);
else
return (minutes * 60);
}
}
}
namespace test
{
class SqlDB
{
private void RecoverSchedule ()
{
switch (Convert.ToInt3 2(myReader.GetV alue(myReader.G etOrd inal("Interval_ Type"))))
{
case 1:
Interval = GetSeconds(0, Convert.ToInt32 (myReader.GetVa lue(myReader.Ge tOrdi nal("Interval_T ime"))));
break;
}
}
}
Comment