/// <summary> /// The click function for the driveLog button. /// Shows the drivelog for the user. /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The event args</param> private void driveLogButton_Click(object sender, EventArgs e) { if (!_search) { SubPageCreated?.Invoke(this); } else { this.Hide(); DriveLogTab studentFoundDriveLogTab = new DriveLogTab(_user, true); studentFoundDriveLogTab.Location = this.Location; studentFoundDriveLogTab.Parent = this; this.Parent.Controls.Add(studentFoundDriveLogTab); studentFoundDriveLogTab.Show(); } }
/// <summary> /// Invoke SubPageCreated event when clikcing the Drive log button /// </summary> /// <param name="sender">The object sender</param> /// <param name="e">The EventArgs</param> private void driveLogButton_Click(object sender, EventArgs e) { SubPageCreated?.Invoke(this); }