private void btnLogin_Click(object sender, EventArgs e)
        {
            int logintype = 1;
            using (ChurchApplicationDataContext churchDB = new ChurchApplicationDataContext())
            {
                var varify = from a in churchDB.Church_LoginDetails where (a.Login_type == logintype && a.Login_name == txtaccountnamager.Text && a.Password == txtPassword.Text) select a;
                if (varify.Count() == 1)
                {
                    this.Close();
                    GeneralOffering accdetail = new GeneralOffering();
                    accdetail.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Enter valid Username&Password!!!");
                }
            }

        }
 private void btnGentraloffering_Click(object sender, EventArgs e)
 {
     GeneralOffering general = new GeneralOffering();
     general.ShowDialog();
 }