private void Scanwobttn_Click(object sender, EventArgs e) { if (connectapi.CheckRights("[WOScan]")) { ScanWO scanWO = new ScanWO(); scanWO.Show(); } else { MetroFramework.MetroMessageBox.Show(this, "Your request can't be completed based on your security settings.", "SPM Connect - Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void CheckInWorkOrderToolStripMenuItem_Click(object sender, EventArgs e) { ScanWO scanWO = new ScanWO(); scanWO.Show(); }