/// <summary> /// Handles the MouseClick event of the notifyIcon control. /// </summary> private void Icon_MouseClick(object sender, MouseEventArgs e) { // Handle mouse button clicks. if (e.Button == MouseButtons.Left) { // View database ViewDialog dlg = new ViewDialog(); dlg.ShowDialog(); } }
/// <summary> /// Handles the Click event of the View control. /// </summary> void View_Click(object sender, EventArgs e) { ViewDialog dlg = new ViewDialog(); dlg.ShowDialog(); }