private void qoutesToolStripMenuItem_Click(object sender, EventArgs e) { Cursor = System.Windows.Forms.Cursors.WaitCursor; Solsage_Process_Management_System.Forms.Qoutes.Qoute frmQoute = new Forms.Qoutes.Qoute(); frmQoute.MdiParent = this; frmQoute.Show(); Cursor = System.Windows.Forms.Cursors.Default; }
private void dgProjectQoutes_CellContentClick(object sender, DataGridViewCellEventArgs e) { //if (dgProjectQoutes.Columns[e.ColumnIndex] == clAdd) //{ // Cursor = System.Windows.Forms.Cursors.WaitCursor; // using (Finder.QouteZoom frmQouteZoom = new Finder.QouteZoom()) // { // if (frmQouteZoom.ShowDialog() == DialogResult.OK) // { // if (frmQouteZoom.sResult != "") // { // dgProjectQoutes.Rows[e.RowIndex].Cells[0].Value = frmQouteZoom.sResult.Trim(); // } // } // Cursor = System.Windows.Forms.Cursors.Default; // } // dgProjectQoutes.Rows.Add(); //} //if (dgProjectQoutes.Columns[e.ColumnIndex] == clDelete) //{ // if (dgProjectQoutes.Rows[e.RowIndex].Cells[0].Value != null) // { // dgProjectQoutes.Rows.Remove(dgProjectQoutes.Rows[e.RowIndex]); // } //} if (dgProjectQoutes.Columns[e.ColumnIndex] == clView) { if (dgProjectQoutes.Rows[e.RowIndex].Cells[0].Value != null) { string sQoute = dgProjectQoutes.Rows[e.RowIndex].Cells[0].Value.ToString(); Solsage_Process_Management_System.Forms.Qoutes.Qoute frmQoute = new Qoutes.Qoute(); frmQoute.ShowDialog(sQoute); } } LoadConsolidateGrid(); LoadProject(txtNumber.Text); }