private void tssTransaction_Click(object sender, EventArgs e) { if (CheckAndLoadSettings()) { Transactions trans = new Transactions(); trans.MdiParent = this; trans.DBPath = DatabasePath; trans.Userlogin = tssUserlogin.Text; trans.IniFileSettings = InifileSettings; trans.isBillingExcel = isBillingExcel; trans.WindowState = FormWindowState.Maximized; trans.Show(); if (!trans.isValidDueDate) { MessageBox.Show("Error: Please check your current duedate setting before creating transaction.", "Due Date Lapse(Invalid)", MessageBoxButtons.OK, MessageBoxIcon.Error); trans.Close(); } } }