using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ManagementSystem { public partial class PayPlanManagementSetup : Form { public string strOwnerForm = ""; public string strXMLName = ""; public PayPlanManagementSetup() { InitializeComponent(); } private void btnReceiptPlanSetup_Click(object sender, EventArgs e) { XMLSetting frmSettingForm = new XMLSetting(); frmSettingForm.Owner = this; frmSettingForm.strOwnerForm = strOwnerForm + "_Receipt"; frmSettingForm.strXMLName = strXMLName + "_Receipt"; frmSettingForm.StartPosition = FormStartPosition.CenterParent; frmSettingForm.ShowDialog(); this.Close(); } private void btnPayPlan_Click(object sender, EventArgs e) { XMLSetting frmSettingForm = new XMLSetting(); frmSettingForm.Owner = this; frmSettingForm.strOwnerForm = strOwnerForm + "_Pay"; frmSettingForm.strXMLName = strXMLName + "_Pay"; frmSettingForm.StartPosition = FormStartPosition.CenterParent; frmSettingForm.ShowDialog(); this.Close(); } } }