private void toolStripTextBox2_Click(object sender, EventArgs e) { if (logi.User().Permiso.Corte) { corteView c = new corteView(); c.ShowDialog(); } }
private void inicio_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.F1) { if (logi.User().Permiso.Corte) { corteView at = new corteView(); at.Show(); } } if (e.KeyData == Keys.F2) { if (logi.User().Permiso.Bordado) { bordadoView at = new bordadoView(); at.Show(); } } if (e.KeyData == Keys.F3) { if (logi.User().Permiso.Maquila) { maquilaView maq = new maquilaView(); maq.Show(); } } if (e.KeyData == Keys.F4) { } if (e.KeyData == Keys.F5) { } if (e.KeyData == Keys.F6) { } if (e.KeyData == Keys.F7) { } if (e.KeyData == Keys.F8) { } if (e.KeyData == Keys.F9) { } if (e.KeyData == Keys.F12) { if (logi.User().Permiso.Admin) { administradorView admin = new administradorView(); admin.ShowDialog(); } } }