public MySqlConnection NewConnection
{
get { return ObjCon; }
}
public void open_Con()
{
if (ObjCon.State == ConnectionState.Closed || ObjCon.State == ConnectionState.Broken)
{
ObjCon = new MySqlConnection(ConString);
ObjCon.Open();
}
}
public void Close_con()
{
try
{
ObjCon.Close();
ObjCon.Dispose();
}
catch
{
ObjCon.Close();
ObjCon.Dispose();
}
}