public HomeFragment() { try { clsGLB = new clsGlobal(); creditDebitDb = new CreditDebitDb(); } catch (Exception ex) { Toast.MakeText(Activity, ex.Message, ToastLength.Long).Show(); } }
public CreditDebitHistoryActivity() { try { clsGLB = new clsGlobal(); creditDebitDb = new CreditDebitDb(); } catch (Exception ex) { Toast.MakeText(this, ex.Message, ToastLength.Long).Show(); } }
public MainActivity() { try { clsGLB = new clsGlobal(); creditDebitDb = new CreditDebitDb(); //Set DBFilePath string folderPath = Path.Combine(clsGlobal.FilePath, clsGlobal.FileFolder); clsGlobal.DBFilePath = Path.Combine(folderPath, clsGlobal.DBFileName); } catch (Exception ex) { Toast.MakeText(this, ex.Message, ToastLength.Long).Show(); } }