private void tlbbClear_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { txtInitiatedBy.Text = ""; lblProjectNumber.Text = ""; lblProjectTitle.Text = ""; txtPCNTitle.Text = ""; dtpDateInitiated.Value = DateTime.Now; txtRequestedBy.Text = ""; dtpDateRequested.Value = DateTime.Now; txtDescription.Text = ""; chkDesignError.Checked = false; chkVendorError.Checked = false; chkEstimatingError.Checked = false; chkContractorError.Checked = false; chkScheduleDelay.Checked = false; chkScopeAdd.Checked = false; chkScopeDel.Checked = false; chkDesignChange.Checked = false; chkOther.Checked = false; txtOtherReason.Text = ""; txtOtherReason.Enabled = false; txtEstimatedHrs.Text = ""; txtEstimatedDollars.Text = ""; txtEstimTIC.Text = ""; txtEstimateAccuracy.Text = ""; txtScheduleImpact.Text = ""; chkApproved.Checked = false; chkDisapproved.Checked = false; chkPrepareControlEstimate.Checked = false; txtProjMngr.Text = ""; lblDateApproved.Text = ""; moPCN.PCNData.PCNHours.Clear(); moPCN.PCNData.PCNExpenses.Clear(); }
private void tlbbSave_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { if (IsValidPCI() == true) { LoadScreenToObject(); moPci.Save(); tlbbSave.Enabled = false; if (mbNewPCNNeeded == true) { string msg = "Do you wish to create a PCN for this PCI?"; if (MessageBox.Show(msg, "New PCN", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { CBPCIInfo.CreatePCNFromPCI(moPci.ProjectID, moPci.ID); } } if (OnPCIChanged != null) { OnPCIChanged(moPci.ID, "Saved"); } } }
private void tlbbLockUnlock_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { if (tlbbLockUnlock.Text == "Locked") { tlbbLockUnlock.Text = "Unlocked"; moPci.IsLocked = false; CBPCIInfo.SetLockOnPCI(moPci.ID, false); SetLockedState(true); } else { if (tlbbSave.Enabled == true) { MessageBox.Show("Please save PCI before locking", "Unsaved", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { tlbbLockUnlock.Text = "Locked"; moPci.IsLocked = true; CBPCIInfo.SetLockOnPCI(moPci.ID, true); SetLockedState(false); } } }
private void tlbbPrint_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { if (IsValidPCI() == true) { CPBudget pbud = new CPBudget(); LoadScreenToObject(); moPci.Save(); tlbbSave.Enabled = false; // pbud.PreviewPCI(moPci.ID); // string pn = moProj.Number; //MessageBox.Show(proj.Number); // MessageBox.Show(projectNumber); pbud.PreviewPCI_New(projectNumber, moPci.ID); if (OnPCIChanged != null) { OnPCIChanged(moPci.ID, "Printed"); } } }
private void command_AddPolicy_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { frm_SelectMonitor frm = new frm_SelectMonitor(isSim, _trader.TA.Bta); frm.onAddPolicies += frm_onAddPolicies; frm.ShowDialog(); }
private void tlbbPrint_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { CPBudget prnt = new CPBudget(); prnt.PreviewPCNLog(txtClient.Text, txtProjName.Text, txtHGANumber.Text, txtClientNumber.Text, txtProjectManager.Text, mdsPCNLogs); //prnt.PreviewPCNLog_New(txtHGANumber.Text, txtClient.Text, txtProjName.Text, txtHGANumber.Text, txtClientNumber.Text, txtProjectManager.Text, mdsPCNLogs); //************ Added 6/29/15 }
private void commandLoad_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { // load layout from file if (openFileDialog1.ShowDialog() == DialogResult.OK) { c1DashboardLayout1.LoadLayout(openFileDialog1.FileName); } }
private void tlbbPrint_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { DataSet ds = CBTransmittalRelease.GetIssueReleaseForReport(moTrans.ID); CPTransmittal.ShowTestIssuance(ds); CBTransmittalRelease.SetPrintDate(moTrans.ID); }
private void startCommunicationCommand_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { if (dispatcher.DatFile == null) { return; } dispatcher.Ecu.Start(dispatcher.DatFile); }
private void commandSave_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { // save layout to file if (saveFileDialog1.ShowDialog() == DialogResult.OK) { c1DashboardLayout1.SaveLayout(saveFileDialog1.FileName); } }
// select a predefined FlexPivot view void MenuView_DropDownItemClicked(object sender, C1.Win.C1Command.ClickEventArgs e) { var nd = e.CallerLink.Command.UserData as XmlNode; if (nd != null && _c1FlexPivotPage.FlexPivotEngine.Fields.Count > 0) { _c1FlexPivotPage.FlexPivotPanel.ViewDefinition = nd.OuterXml; } }
private void tlbbSave_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { SaveIssueRelease(); if (OnReleaseChanged != null) { OnReleaseChanged(moTrans.ID); } }
private void writeCurrentCalibrCommand_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { if (!dispatcher.Ecu.IsConnected || currentCalibr == null) { return; } dispatcher.Ecu.WriteCalibr(currentCalibr); }
private void openDatFileCommand_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { var oldDatFile = dispatcher.DatFile; dispatcher.OpenDatFileDialog(this); var newDatFile = dispatcher.DatFile; PrepareOpenedDatFile(oldDatFile, newDatFile); }
private void readCurrentCalibrCommand_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { if (!dispatcher.Ecu.IsConnected || currentCalibr == null) { return; } dispatcher.Ecu.ReadCalibrItems.Enqueue(currentCalibr); }
private void tlbbExpenseExport_Click(object sender, C1.Win.C1Command.ClickEventArgs e) //************************Added 6/3/15 { CExpenseExport ee = new CExpenseExport(); DateTime dt = DateTime.Now; saveFileDialog1.FileName = "PCN Expense-" + moProj.Number + "-" + moPCN.PCNTitle + "-" + moPCN.PCNNumber + "-" + dt.ToString("yyyMMdd hhmmss"); //*******************Added 10/4/2015 if (saveFileDialog1.ShowDialog() == DialogResult.OK) { ee.ExportBudgetForPrimavera(saveFileDialog1.FileName, moPCN.ID); } }
private void tlbbListDrwgs_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { FTran_IssueDocs id = new FTran_IssueDocs(); id.OnDocUpdate += new IssueDocHandler(ReleaseDocsUpdate); id.ProjectID = miCurrProj; id.ReleaseDocs = mdsRelDocs; id.DeletedDocs = mdsRelDeletes; id.ShowDialog(); id.OnDocUpdate -= new IssueDocHandler(ReleaseDocsUpdate); }
// select a predefined view void menuView_DropDownItemClicked(object sender, C1.Win.C1Command.ClickEventArgs e) { var nd = e.CallerLink.Command.UserData as System.Xml.XmlNode; if (nd != null) { // load view definition from XML c1FlexPivotPage1.ViewDefinition = nd.OuterXml; // show current view name in status bar c1FlexPivotPage1.LabelStatus.Text = nd.Attributes["id"].Value; } }
private void tlbbNew_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { if (tlbbSave.Enabled == true) { DialogResult retVal = MessageBox.Show("Issue has not been saved, would you like to save it?", "Save Release", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (retVal == DialogResult.Yes) { SaveIssueRelease(); } } ClearForm(); }
// select a predefined FlexPivot view void MenuView_DropDownItemClicked(object sender, C1.Win.C1Command.ClickEventArgs e) { if (updating || sel == null) { return; } var nd = e.CallerLink.Command.UserData as XmlNode; if (nd != null) { _c1FlexPivotPage.FlexPivotPanel.ViewDefinition = nd.OuterXml; } }
private void c1Command2_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { c1Command2.Enabled = false; // clear FlexGrid c1FlexGrid1.DataSource = null; c1FlexGrid1.Rows.Count = 1; c1FlexGrid1.Cols.Count = 1; count = (int)txtCount.Value; progressBar.Maximum = count; // run background worker worker.RunWorkerAsync(); }
private void command_quit_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { try { for (int i = 0; i < this._policies.Count; i++) { try { _policies[i].Stop(); } catch { } } } catch { } this.Close(); }
private void tlbbPrint_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { SaveCurrentPCN(); tlbbSave.Enabled = false; string projNumber = moProj.Number; string pcnNumber = moPCN.PCNNumber; CPBudget pBud = new CPBudget(); // pBud.PreviewPCN(moPCN.ID); pBud.PreviewPCN_New(projNumber, pcnNumber, moPCN.ID); }
private void c1Command5_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { System.Diagnostics.Debug.Assert(_form2 == null); // Create the child form _form2 = new Form2(); // Use C1CommandHolder.MergeCommandLinks to merge the links from the // current menu with the links in the child form's menu. // We pass the current main menu's CommandLinks as both one of the // inputs and the output, so that the merged links will replace // the current links. this.c1CommandHolder1.MergeCommandLinks(this.c1MainMenu1.CommandLinks, this.c1MainMenu1.CommandLinks, _form2.c1MainMenu1.CommandLinks); // Hide the child form's menu - its commands are now available via // the main form's main menu _form2.c1MainMenu1.Hide(); // When the child is closed, we want to restore the main form's menu. // Wire up an event handler to do that. _form2.Closing += new CancelEventHandler(Form2_Closing); // Finally, show the child form. _form2.Show(); }
private void stopCommunicationCommand_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { dispatcher.Ecu.Stop(); }
private void openOptionsDialogCommand_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { OptionsHelper.OpenDialog(this); }
private void tlbbExit_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { this.Close(); }
private void tlbbNew_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { ClearForm(true); }
private void c1Command4_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { Application.Exit(); }
private void c1ContextMenu1_Click(object sender, C1.Win.C1Command.ClickEventArgs e) { }