private void workAccountButton_Click(object sender, EventArgs e)
 {
     AccountsReceivablePayable accountReceivable = new AccountsReceivable();
     accountReceivable.Account = Account;
     accountReceivable.MainMenu = MainMenu;
     accountReceivable.Show();
     Close();
 }
        override public void switchViewButton_Click(object sender, EventArgs e)
        {
            if (AccountsReceivable == null)
            {
                AccountsReceivable = new AccountsReceivable();
                AccountsReceivable.Account = Account;
                AccountsReceivable.AccountsPayable = this;
            }

            AccountsReceivable.Show();
            Hide();
        }
 private void accountsReceivableButton_Click(object sender, EventArgs e)
 {
     var accountsReceivable = new AccountsReceivable();
     accountsReceivable.MainMenu = this;
     accountsReceivable.Show();
 }