private void InvoicesButton_Click(object sender, EventArgs e) { directory = DirectoryText.Text; if (System.IO.Directory.Exists(directory)) { Process.Start(directory); DirErrorLabel.Hide(); } else { MessageBox.Show("The directory path is not set or does not exist!", "Opps! Something went wrong!", MessageBoxButtons.OK, MessageBoxIcon.Hand); DirErrorLabel.Show(); } }
private void WeekChooser_Click(object sender, EventArgs e) { EmptyError.Hide(); DirErrorLabel.Hide(); }
private void HoursWorked_Click(object sender, EventArgs e) { EmptyError.Hide(); DirErrorLabel.Hide(); }
private void DepartmentText_Click(object sender, EventArgs e) { EmptyError.Hide(); DirErrorLabel.Hide(); }
private void EmployeeNameText_Click(object sender, EventArgs e) { EmployeeNameText.Text = ""; EmptyError.Hide(); DirErrorLabel.Hide(); }