private void btnHome_Click(object sender, RoutedEventArgs e) { try { if (sFormName == "HomeMember") { frmHomeMembership frm = new frmHomeMembership(); this.Close(); frm.ShowDialog(); } else if (sFormName == "Registration") { frmMemberRegistration frm = new frmMemberRegistration(0); this.Close(); frm.ShowDialog(); } else if (sFormName == "PostArrear") { frmArrearPost16 frm = new frmArrearPost16(0); this.Close(); frm.ShowDialog(); } else if (sFormName == "PreArrear") { frmArrearPre16 frm = new frmArrearPre16(0); this.Close(); frm.ShowDialog(); } else if (sFormName == "Resingation") { frmResingation frm = new frmResingation(0); this.Close(); frm.ShowDialog(); } else if (sFormName == "Transfer") { frmTransfer frm = new frmTransfer(0); this.Close(); frm.ShowDialog(); } else if (sFormName == "LEVY") { frmLevy frm = new frmLevy(0); this.Close(); frm.ShowDialog(); } else if (sFormName == "TDF") { frmTDF frm = new frmTDF(0); this.Close(); frm.ShowDialog(); } } catch (Exception ex) { ExceptionLogging.SendErrorToText(ex); } }
private void btnResingation_Click(object sender, RoutedEventArgs e) { frmResingation frm = new frmResingation(); userPrevilage = new UserPrevilage(this.btnResingation.Tag.ToString()); if (userPrevilage.Show == true) { frm.btnSave.IsEnabled = Convert.ToBoolean(userPrevilage.AddNew); this.Close(); frm.ShowDialog(); } }