private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { switch (_jobLinks[gridMain.SelectedIndices[0]].LinkType) { case JobLinkType.Task: Task task = Tasks.GetOne(_jobLinks[gridMain.SelectedIndices[0]].FKey); FormTaskEdit FormTE = new FormTaskEdit(task); FormTE.ShowDialog(); FillGrid(); break; case JobLinkType.Request: FormRequestEdit FormRE = new FormRequestEdit(); FormRE.RequestId = _jobLinks[gridMain.SelectedIndices[0]].FKey; FormRE.IsAdminMode = true; FormRE.ShowDialog(); FillGrid(); break; case JobLinkType.Bug: break; //case JobLinkType.Quote://TODO // JobQuote quote=JobQuotes.GetOne(_jobLinks[gridMain.SelectedIndices[0]].FKey); // FormJobQuoteEdit FormJQE=new FormJobQuoteEdit(quote); // FormJQE.JobLinkNum=_jobLinks[gridMain.SelectedIndices[0]].JobLinkNum;//Allows deletion of the link if the quote is deleted. // FormJQE.ShowDialog(); // _jobLinks=JobLinks.GetJobLinks(_jobNum); // FillGrid(); // break; } }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormRequestEdit FormR = new FormRequestEdit(); FormR.RequestId = PIn.Long(table.Rows[e.Row]["RequestId"]); FormR.IsAdminMode = isAdminMode; FormR.ShowDialog(); FillGrid(); }
private void butManual_Click(object sender, EventArgs e) { foreach (JobLink link in _listRequestLinks) { FormRequestEdit FormRE = new FormRequestEdit(); FormRE.IsAdminMode = true; FormRE.RequestId = link.FKey; FormRE.ShowDialog(); } DialogResult = DialogResult.OK; }
private void butEdit_Click(object sender, EventArgs e) { ODDataRow gridRow = (ODDataRow)gridMain.Rows[gridMain.GetSelectedIndex()].Tag; FormRequestEdit FormR = new FormRequestEdit(); FormR.RequestId = PIn.Long(gridRow["RequestId"]); FormR.IsAdminMode = isAdminMode; FormR.ShowDialog(); //The user could have voted towards this request or done something else and we need to refresh the grid. //If the user had sorted the grid by a specific column, this call will lose their column sort and put it back to the default. FillGrid(); }
private void buttonAdd_Click(object sender, EventArgs e) { if (!MsgBox.Show(this, MsgBoxButtons.OKCancel, "The majority of feature requests that users submit are duplicates of existing requests. Please take the time to do a thorough search for different keywords and become familiar with similar requests before adding one of your own. Continue?")) { return; } FormRequestEdit FormR = new FormRequestEdit(); //FormR.IsNew=true; FormR.IsAdminMode = isAdminMode; FormR.ShowDialog(); textSearch.Text = ""; //so we can see our new request FillGrid(); }
private void butEdit_Click(object sender, EventArgs e) { if (gridMain.SelectedIndices.Length == 0) { MsgBox.Show(this, "Please select a feature request."); return; } ODDataRow gridRow = (ODDataRow)gridMain.ListGridRows[gridMain.GetSelectedIndex()].Tag; FormRequestEdit FormR = new FormRequestEdit(); FormR.RequestId = PIn.Long(gridRow["RequestId"]); FormR.IsAdminMode = isAdminMode; FormR.ShowDialog(); //The user could have voted towards this request or done something else and we need to refresh the table and the grid. //If the user had sorted the grid by a specific column, this call will lose their column sort and put it back to the default. RefreshRequestTable(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { ODDataRow gridRow = (ODDataRow)gridMain.Rows[e.Row].Tag; if (IsSelectionMode) { SelectedFeatureNum = PIn.Long(gridRow["RequestId"]); DialogResult = DialogResult.OK; return; } FormRequestEdit FormR = new FormRequestEdit(); FormR.RequestId = PIn.Long(gridRow["RequestId"]); FormR.IsAdminMode = isAdminMode; FormR.ShowDialog(); //The user could have voted towards this request or done something else and we need to refresh the grid. //If the user had sorted the grid by a specific column, this call will lose their column sort and put it back to the default. FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormRequestEdit FormR=new FormRequestEdit(); FormR.RequestId=PIn.Long(table.Rows[e.Row]["RequestId"]); FormR.IsAdminMode=isAdminMode; FormR.ShowDialog(); FillGrid(); }
private void buttonAdd_Click(object sender,EventArgs e) { if(!MsgBox.Show(this,MsgBoxButtons.OKCancel,"The majority of feature requests that users submit are duplicates of existing requests. Please take the time to do a thorough search for different keywords and become familiar with similar requests before adding one of your own. Continue?")) { return; } FormRequestEdit FormR=new FormRequestEdit(); //FormR.IsNew=true; FormR.IsAdminMode=isAdminMode; FormR.ShowDialog(); textSearch.Text="";//so we can see our new request FillGrid(); }