//Landing Page Go To Labels ends here private void Btn_Accounting_Click(object sender, EventArgs e) { this.Hide(); AccountingInformationForm AccountingInformationForm = new AccountingInformationForm(); AccountingInformationForm.Show(); }
private void Previous_pic_Click(object sender, EventArgs e) { if (typeFlag) // flag : true = Payable, false = receivable { var accts = new AccountingInformationForm(1); // 1 is a flag for the Overload, to auto put up AcctPayable accts.Show(); this.Hide(); } else if (!typeFlag) { var accts = new AccountingInformationForm(2); // 2 is a flag for the Overload to auto display Acct Rec accts.Show(); this.Hide(); } else//somehow null??? { var accts = new AccountingInformationForm(); // and just in case something goes weird, here. Default form. accts.Show(); this.Hide(); } }