private void projectsToolStripMenuItem_Click(object sender, EventArgs e) { frmProject supplier = new frmProject(); supplier.GetUserID(TxtUserID.Text); supplier.ShowDialog(); }
private void menu_newproject_Click(object sender, RoutedEventArgs e) { //新增项目 frmProject frm = new frmProject(null); frm.ShowDialog(); }
private void dgObject_MouseDoubleClick(object sender, MouseButtonEventArgs e) { TB_PROJECT proj = dgObject.SelectedItem as TB_PROJECT; if (proj != null) { if (proj.CREATEUSER == Global.g_usercode || Global.g_userrole == 8 || Global.g_userrole == 9) { frmProject frm = new frmProject(proj); frm.ShowDialog(); } } //刷新 BindProjectData(); }
private void tsmiNew_Click(object sender, EventArgs e) { if (1 == 2) { MessageBox.Show("未找到加密锁,请插入加密锁后,再进行操作!"); return; } this.Cursor = Cursors.WaitCursor; string projectno = Globals.OpenedProjectNo;//主键值 frmProject frmProject = new frmProject(projectno, true); frmProject.ShowDialog(); this.Cursor = Cursors.Default; if (frmProject.HasChange) { } }