//****************************************// // Menu Strip // //****************************************// private void deviceConfigToolStripMenuItem_Click(object sender, EventArgs e) { FormTrackpadConfig formTPConfig = new FormTrackpadConfig(); try { formTPConfig.ShowDialog(); } catch (Exception ex) { MessageBox.Show("ERROR: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Log.error(ex.Message); } finally { formTPConfig.Dispose(); } }
//show configuratrion panel. private void configurationToolStripMenuItem_Click(object sender, EventArgs e) { if (passwordConfirmed) { FormTrackpadConfig formTPConfig = new FormTrackpadConfig(); try { formTPConfig.ShowDialog(); } catch (Exception ex) { MessageBox.Show("ERROR: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { formTPConfig.Dispose(); } } else { MessageBox.Show("Please LogIn from the file Menu first\n Or you can contact your test engineer ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
//****************************************// // Menu Strip // //****************************************// private void deviceConfigToolStripMenuItem_Click(object sender, EventArgs e) { FormTrackpadConfig formTPConfig = new FormTrackpadConfig(); try { formTPConfig.ShowDialog(); } catch (Exception ex) { MessageBox.Show("ERROR: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Log.error(ex.Message); } finally { formTPConfig.Dispose(); } }
//show configuratrion panel. private void configurationToolStripMenuItem_Click(object sender, EventArgs e) { if (passwordConfirmed) { FormTrackpadConfig formTPConfig = new FormTrackpadConfig(); try { formTPConfig.ShowDialog(); } catch (Exception ex) { MessageBox.Show("ERROR: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } finally { formTPConfig.Dispose(); } } else MessageBox.Show("Please LogIn from the file Menu first\n Or you can contact your test engineer ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }