private void btnPayDate_Click(object sender, EventArgs e) { TimeConnector.Data.ActionLog.Insert("Clicked " + ((System.Windows.Forms.ButtonBase)(sender)).Text + "", this.Name); Maintenance.frmPaydate fpay = new Maintenance.frmPaydate(); fpay.Show(); }