// TODO: Move to service layer private void unReceiveLink_OpenLink(object sender, OpenLinkEventArgs e) { Receipt receipt = processedView.GetFocusedRow() as Receipt; if (receipt != null) { DialogResult ans; string delQuestion = "Are you sure you want to remove " + receipt.UnitTrackingId + " from this order?"; if (Scout.Core.UserInteraction.Dialog.AskQuestion(delQuestion) == DialogResult.Yes) { try { Cursor.Current = Cursors.WaitCursor; m_receiving.DeleteReceipt(receipt); LoadOrderProcessResults(); } finally { Cursor.Current = Cursors.Default; } } } }
private void undoConsumptionLink_OpenLink(object sender, OpenLinkEventArgs e) { var transaction = partsUsedView.GetFocusedRow() as Transaction; //var rc = from f in m_process.AllProcessFailures // from r in f.Repairs // from c in r.Components.Where(c => c.ConsumptionId == transaction.TransId) // select c; //var component = rc.First(); RepairComponent component = null; foreach (var failure in m_process.AllProcessFailures) { foreach (var repair in failure.Repairs) { foreach (var c in repair.Components) { if (c.ConsumptionId == transaction.TransId) { component = c; } } } } if (transaction != null) { if (MaterialService.UndoMaterialsConsumption(component, transaction)) { LoadPartsUsed(m_item.LotId); } } }
private void repositoryItemHyperLinkEdit1_OpenLink(object sender, OpenLinkEventArgs e) { if (e.EditValue != null) { e.EditValue = "mailto:" + e.EditValue.ToString(); } }
void link_OpenLink(object sender, OpenLinkEventArgs e) { if (e.EditValue.ToString().Equals("0")) { return; } string vendor = gridView1.GetFocusedRowCellValue("厂家").ToString(); string qty = gridView1.GetFocusedRowCellValue("单位").ToString(); string item = ""; if (ckItem.Checked) { item = gridView1.GetFocusedRowCellValue("材料编号").ToString(); } string location = ""; if (ckLoc.Checked) { location = gridView1.GetFocusedRowCellValue("位置").ToString(); } string clickCol = gridView1.FocusedColumn.FieldName; InventoryDetail frmNew = new InventoryDetail(vendor, qty, item, location, clickCol); DialogResult dg = frmNew.ShowDialog(); }
private void failCodeByCategoryLink_OpenLink(object sender, OpenLinkEventArgs e) { FailCodeByCategoryView view = new FailCodeByCategoryView(m_item.Part.ServiceCommodity.ServiceCodes, m_codeByCategoryReturnHandler); view.StartPosition = FormStartPosition.CenterParent; view.ShowDialog(this); }
private void emailLinkEdit_OpenLink(object sender, OpenLinkEventArgs e) { e.Handled = true; if (!String.IsNullOrWhiteSpace(e.EditValue as string)) { Process.Start("mailto: " + e.EditValue); } }
private void setFpErrorCodeLink_OpenLink(object sender, OpenLinkEventArgs e) { var failure = repairFailuresView.GetFocusedRow() as RouteStationFailure; if (failure != null) { m_process.ChangeFpErrorCodeOwner(failure); } }
private void printLink_OpenLink(object sender, OpenLinkEventArgs e) { Receipt receipt = processedView.GetFocusedRow() as Receipt; if (receipt != null) { m_receiving.PrintReceiveLabel(receipt); } }
/// <summary> /// Removes the selected document from the parts document list. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void removeDocumentLink_OpenLink(object sender, OpenLinkEventArgs e) { PartDocument document = documentsView.GetFocusedRow() as PartDocument; if (document != null) { m_part.RemoveDocument(document); } }
private void editReceiptLink_OpenLink(object sender, OpenLinkEventArgs e) { Receipt receipt = processedView.GetFocusedRow() as Receipt; if (receipt != null) { ScatterReceipt(receipt); } }
private void f9CommentsLink_OpenLink(object sender, OpenLinkEventArgs e) { if (m_item == null) { return; } FrontController.GetInstance().RunCommand( ServiceCommands.ViewF9Comments, m_item); }
private void downloadProjectUrlLinkEdit_OpenLink(object sender, OpenLinkEventArgs e) { var sei = new ShellExecuteInformation { FileName = _result.DownloadUrl }; sei.Execute(); }
private void recipientAddresses_OpenLink(object sender, OpenLinkEventArgs e) { var str = e.EditValue as string; if (!String.IsNullOrWhiteSpace(str)) { Process.Start("mailto: " + str); } e.Handled = true; }
private void createNoPartRecordLink_OpenLink(object sender, OpenLinkEventArgs e) { RouteStationRepair repair = repairsView.GetFocusedRow() as RouteStationRepair; if (repair != null) { PartReplacementService.CreateNoPartRecord(repair); } }
/// <summary> /// Gets the current PartModel and opens the bom master for editing. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void openBomMasterLink_OpenLink(object sender, OpenLinkEventArgs e) { PartModel partModel = modeLookup.EditValue as PartModel; if (partModel != null) { FrontController.GetInstance().RunCommand( PartCommands.ManagePartModelBomMaster, partModel.Id); } }
private void hyperLinkEdit1_OpenLink(object sender, OpenLinkEventArgs e) { var sei = new ShellExecuteInformation { FileName = @"https://www.zeta-uploader.com" }; sei.Execute(); }
private void loadDellPreAlertLink_OpenLink(object sender, OpenLinkEventArgs e) { if (!m_po.IsBlanket()) { Scout.Core.UserInteraction.Dialog.ShowMessage("This order already contains line items and a pre-alert cannot be imported.", UserMessageType.Error); return; } ViewLoader.Instance().CreateFormWithArgs <PreAlertImportForm>(false, m_po); }
private void appIDLinkControl_OpenLink(object sender, OpenLinkEventArgs e) { if (engineComboBox.SelectedIndex >= 0 && engineComboBox.SelectedIndex < engineComboBox.Properties.Items.Count) { var eh = (EngineHelper)engineComboBox.Properties.Items[engineComboBox.SelectedIndex]; Process.Start(eh.Engine.AppIDLink); } }
private void deleteMaterialsTaskLink_OpenLink(object sender, OpenLinkEventArgs e) { StationMaterialsTask task = materialTasksView.GetFocusedRow() as StationMaterialsTask; if (task != null) { task.Delete(); } //Tasks.Remove(task); }
public void ResetProductName(object sender, OpenLinkEventArgs e) { e.Handled = true; if (PopupMessageHelper.Instance.ShowWarningQuestion( String.Format("Are you SURE you want to Wipe Everything{0}and reset the data for this Digital Product ? ", Environment.NewLine)) != DialogResult.Yes) { return; } Product.UserDefinedName = null; memoEditProductName.EditValue = Product.ExtendedName; }
private void removeRepairLink_OpenLink(object sender, OpenLinkEventArgs e) { RouteStationRepair repair = repairsView.GetFocusedRow() as RouteStationRepair; if (repair != null) { if (VerifyDelete(repair)) { m_failure.Repairs.Remove(repair); } } }
// Tester la connection private void TesterConnexion(object sender, OpenLinkEventArgs e) { try { _controller.VerifierConnexion(_currentView); XtraMessageBox.Show("Connection valide!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void removeFailureLink_OpenLink(object sender, OpenLinkEventArgs e) { RouteStationFailure failure = failuresView.GetFocusedRow() as RouteStationFailure; if (failure != null) { if (VerifyDelete(failure)) { m_process.Failures.Remove(failure); } } }
private void hyperLinkEditReset_OpenLink(object sender, OpenLinkEventArgs e) { if (PopupMessageHelper.Instance.ShowWarningQuestion( String.Format("Are you SURE you want to Wipe Everything{0}and reset the data for this Digital Product ? ", Environment.NewLine)) != DialogResult.Yes) { return; } Product.ApplyDefaultView(); ResetProductName(this, new OpenLinkEventArgs(String.Empty)); LoadValues(); _container.LoadProduct(this); _container.RaiseDataChanged(); e.Handled = true; }
/// <summary> /// Открыть документ /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DocumentEdit_OpenLink(object sender, OpenLinkEventArgs e) { try { if (!string.IsNullOrWhiteSpace(Path)) { Process.Start(Path); } } catch (Exception exc) { var error = string.Format(GuiResource.DocumentEdit_ErrorOpenDocument, Path); IoCView.Instance.Resolve <IMessageBoxView>().Show(error); Logger.Error(exc.Message); Logger.Error(exc.StackTrace); } }
private void hyperLinkEdit1_OpenLink(object sender, OpenLinkEventArgs e) { if (XtraMessageBox.Show( this, Resources.SR_ErrorForm_button2Click_QuitTheApplication, @"Zeta Resource Editor", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes) { DialogResult = DialogResult.Abort; Close(); } else { DialogResult = DialogResult.None; } }
private void repositoryItemHyperLinkEditRichMedia_OpenLink(object sender, OpenLinkEventArgs e) { e.Handled = true; var digitalProduct = advBandedGridView.GetFocusedRow() as DigitalProduct; if (digitalProduct == null) { return; } using (var form = new FormProductInfo(ProductInfoType.RichMedia, digitalProduct)) { if (form.ShowDialog() == DialogResult.OK) { _onDataChanged(); } } advBandedGridView.CloseEditor(); }
private void hyperLinkEditReset_OpenLink(object sender, OpenLinkEventArgs e) { foreach (var publication in LocalSchedule.PrintProducts) { publication.ViewSettings.BasicOverviewSettings.ResetToDefault(); if (string.IsNullOrEmpty(publication.Name)) { continue; } var publicationTab = _tabPages.FirstOrDefault(x => x.PrintProduct.UniqueID.Equals(publication.UniqueID)); if (publicationTab != null) { publicationTab.LoadPublication(); } Application.DoEvents(); } SettingsNotSaved = false; Controller.Instance.SaveSchedule(LocalSchedule, false, true, this); }
private void resolveLink_OpenLink(object sender, OpenLinkEventArgs e) { var hold = capturedItemsView.GetFocusedRow() as InventoryHold; if (hold != null) { if (hold.Item.Hold == null) { Scout.Core.UserInteraction.Dialog.ShowMessage ("A valid hold was not found. Contact IT to resolve.", UserMessageType.Error); return; } ViewLoader.Instance() .CreateFormWithArgs <HoldResolutionForm>(false, hold); LoadUnresolvedHolds(); } }
private void OnSalesQuoteClick(object sender, OpenLinkEventArgs e) { e.Handled = true; if (simpleLabelItemSalesQuoteAuthor.Text == " " && simpleLabelItemSalesQuoteValue.Text == " ") { using (var form = new FormQuotes(SlideContainer.DashboardInfo.CoverLists.Quotes)) { if (form.ShowDialog() != DialogResult.OK) { return; } if (form.SelectedQuote == null) { return; } simpleLabelItemSalesQuoteAuthor.CustomizationFormText = form.SelectedQuote.Author; simpleLabelItemSalesQuoteValue.CustomizationFormText = "\"" + form.SelectedQuote.Text + "\""; simpleLabelItemSalesQuoteAuthor.Text = String.Format("<size=+2><b>{0}</b></size>", form.SelectedQuote.Author); simpleLabelItemSalesQuoteValue.Text = String.Format("<size=+1><b><i>{0}</i></b></size>", "\"" + form.SelectedQuote.Text + "\""); emptySpaceItemSalesQuoteDefault.Visibility = LayoutVisibility.Never; layoutControlGroupSalesQuoteValue.Visibility = LayoutVisibility.Always; hyperLinkEditResetProductName.Text = String.Format("<size=+2><color=red><i><u>{0}</u></i></color></size>", "Remove Sales Quote"); } } else { simpleLabelItemSalesQuoteAuthor.CustomizationFormText = " "; simpleLabelItemSalesQuoteValue.CustomizationFormText = " "; simpleLabelItemSalesQuoteAuthor.Text = " "; simpleLabelItemSalesQuoteValue.Text = " "; layoutControlGroupSalesQuoteValue.Visibility = LayoutVisibility.Never; emptySpaceItemSalesQuoteDefault.Visibility = LayoutVisibility.Always; hyperLinkEditResetProductName.Text = String.Format("<size=+2><color={1}><i><u>{0}</u></i></color></size>", "Add Sales Quote", SlideContainer.AccentColor.HasValue ? SlideContainer.AccentColor.Value.ToHex() : "blue"); } OnEditValueChanged(sender, e); }
private void repositoryItemHyperLinkEdit1_OpenLink(object sender, OpenLinkEventArgs e) { if(e.EditValue != null) e.EditValue = "mailto:" + e.EditValue.ToString(); }
private void hyperLinkEditReset_OpenLink(object sender, OpenLinkEventArgs e) { ResetToDefault(); e.Handled = true; }
private void hyperLinkEditReset_OpenLink(object sender, OpenLinkEventArgs e) { foreach (var publication in LocalSchedule.PrintProducts) { publication.ViewSettings.BasicOverviewSettings.ResetToDefault(); if (string.IsNullOrEmpty(publication.Name)) continue; var publicationTab = _tabPages.FirstOrDefault(x => x.PrintProduct.UniqueID.Equals(publication.UniqueID)); if (publicationTab != null) publicationTab.LoadPublication(); Application.DoEvents(); } SettingsNotSaved = false; Controller.Instance.SaveSchedule(LocalSchedule, false, true, this); }
private void hyperLinkEditReset_OpenLink(object sender, OpenLinkEventArgs e) { if (PopupMessageHelper.Instance.ShowWarningQuestion( String.Format("Are you SURE you want to Wipe Everything{0}and reset the data for this Digital Product ? ", Environment.NewLine)) != DialogResult.Yes) return; Product.ApplyDefaultView(); ResetProductName(this, new OpenLinkEventArgs(String.Empty)); LoadValues(); _container.LoadProduct(this); _container.RaiseDataChanged(); e.Handled = true; }
private void OnAdvancedSettingsEdit(object sender, OpenLinkEventArgs e) { e.Handled = true; using (var form = new FormOutputSettings()) { switch (_selectedEditorType) { case SnapshotEditorType.Schedule: form.checkEditUseDecimalRate.Checked = _editedSnapshot.UseDecimalRates; form.checkEditShowSpotX.Checked = _editedSnapshot.ShowSpotsX; form.checkEditShowSpotsPerWeek.Enabled = true; form.labelControlDescriptionShowSpotsPerWeek.Enabled = true; form.checkEditShowSpotsPerWeek.Checked = _editedSnapshot.ShowSpotsPerWeek; form.checkEditCloneLineToTheEnd.Enabled = true; form.labelControlDescriptionCloneLineToTheEnd.Enabled = true; form.checkEditCloneLineToTheEnd.Checked = _editedSnapshot.CloneLineToTheEnd; break; case SnapshotEditorType.Summary: form.checkEditShowSpotsPerWeek.Enabled = false; form.labelControlDescriptionShowSpotsPerWeek.Enabled = false; form.checkEditUseDecimalRate.Checked = _editedContent.SnapshotSummary.UseDecimalRates; form.checkEditShowSpotX.Checked = _editedContent.SnapshotSummary.ShowSpotsX; form.checkEditCloneLineToTheEnd.Enabled = false; form.labelControlDescriptionCloneLineToTheEnd.Enabled = false; form.checkEditCloneLineToTheEnd.Checked = false; break; default: return; } form.checkEditLockToMaster.Checked = MediaMetaData.Instance.SettingsManager.UseSlideMaster; if (form.ShowDialog() != DialogResult.OK) return; switch (_selectedEditorType) { case SnapshotEditorType.Schedule: _editedSnapshot.UseDecimalRates = form.checkEditUseDecimalRate.Checked; _editedSnapshot.ShowSpotsX = form.checkEditShowSpotX.Checked; _editedSnapshot.ShowSpotsPerWeek = form.checkEditShowSpotsPerWeek.Checked; _editedSnapshot.CloneLineToTheEnd = form.checkEditCloneLineToTheEnd.Checked; if (_editedContent.SnapshotSummary.ApplySettingsForAll) { foreach (var snapshot in _editedContent.Snapshots.Where(os => os.UniqueID != _editedSnapshot.UniqueID)) { snapshot.UseDecimalRates = form.checkEditUseDecimalRate.Checked; snapshot.ShowSpotsX = form.checkEditShowSpotX.Checked; snapshot.ShowSpotsPerWeek = form.checkEditShowSpotsPerWeek.Checked; snapshot.CloneLineToTheEnd = form.checkEditCloneLineToTheEnd.Checked; } } break; case SnapshotEditorType.Summary: _editedContent.SnapshotSummary.UseDecimalRates = form.checkEditUseDecimalRate.Checked; _editedContent.SnapshotSummary.ShowSpotsX = form.checkEditShowSpotX.Checked; break; } MediaMetaData.Instance.SettingsManager.UseSlideMaster = form.checkEditLockToMaster.Checked; RaiseSettingsChanged(new SettingsChangedEventArgs { ChangedSettingsType = SnapshotSettingsType.AdvancedColumns, }); } }
private void hyperLinkEdit1_OpenLink(object sender, OpenLinkEventArgs e) { Process.Start( @"http://extensions.services.openoffice.org/dictionary"); }
private void OnContractSettingsEdit(object sender, OpenLinkEventArgs e) { e.Handled = true; using (var form = new FormContractSettings()) { form.checkEditShowSignatureLine.Checked = _editedSection.ContractSettings.ShowSignatureLine; form.checkEditShowRatesExpiration.Checked = _editedSection.ContractSettings.RateExpirationDate.HasValue; form.checkEditShowDisclaimer.Checked = _editedSection.ContractSettings.ShowDisclaimer; form.dateEditRatesExpirationDate.EditValue = _editedSection.ContractSettings.RateExpirationDate; if (form.ShowDialog() != DialogResult.OK) return; _editedSection.ContractSettings.ShowSignatureLine = form.checkEditShowSignatureLine.Checked; _editedSection.ContractSettings.ShowDisclaimer = form.checkEditShowDisclaimer.Checked; _editedSection.ContractSettings.RateExpirationDate = (DateTime?)form.dateEditRatesExpirationDate.EditValue; RaiseSettingsChanged(new SettingsChangedEventArgs { ChangedSettingsType = ScheduleSettingsType.Contract }); } }
private void OnAdvancedSettingsEdit(object sender, OpenLinkEventArgs e) { e.Handled = true; using (var form = new FormOutputSettings()) { form.checkEditEmptySports.Text = String.Format(form.checkEditEmptySports.Text, String.Format("{0}s:", _editedSection.Parent.ScheduleSettings.SelectedSpotType)); form.checkEditEmptySports.Enabled = _editedSection.ShowSpots; form.labelControlDescriptionEmptySports.Enabled = _editedSection.ShowSpots; form.checkEditEmptySports.Checked = !_editedSection.ShowEmptySpots; form.checkEditOutputNoBrackets.Checked = _editedSection.OutputNoBrackets; form.checkEditUseGenericDates.Checked = _editedSection.UseGenericDateColumns; form.checkEditUseDecimalRate.Checked = _editedSection.UseDecimalRates; form.checkEditCloneLineToTheEnd.Checked = _editedSection.CloneLineToTheEnd; form.checkEditOutputLimitQuarters.Enabled = _editedSection.Parent.ScheduleSettings.Quarters.Count > 1; form.labelControlDescriptionOutputLimitQuarters.Enabled = _editedSection.Parent.ScheduleSettings.Quarters.Count > 1; form.checkEditOutputLimitQuarters.Checked = _editedSection.Parent.ScheduleSettings.Quarters.Count > 1 && _editedSection.OutputPerQuater; form.checkEditOutputLimitPeriods.Checked = _editedSection.OutputMaxPeriods.HasValue; form.spinEditOutputLimitPeriods.EditValue = _editedSection.OutputMaxPeriods; form.checkEditOutputLimitPeriods.Text = String.Format(form.checkEditOutputLimitPeriods.Text, _editedSection.Parent.ScheduleSettings.SelectedSpotType); form.checkEditLockToMaster.Checked = MediaMetaData.Instance.SettingsManager.UseSlideMaster; if (form.ShowDialog() != DialogResult.OK) return; var updateColumns = _editedSection.UseGenericDateColumns != form.checkEditUseGenericDates.Checked; _editedSection.ShowEmptySpots = !form.checkEditEmptySports.Checked; _editedSection.OutputNoBrackets = form.checkEditOutputNoBrackets.Checked; _editedSection.UseDecimalRates = form.checkEditUseDecimalRate.Checked; _editedSection.CloneLineToTheEnd = form.checkEditCloneLineToTheEnd.Checked; _editedSection.UseGenericDateColumns = form.checkEditUseGenericDates.Checked; _editedSection.OutputPerQuater = form.checkEditOutputLimitQuarters.Checked; _editedSection.OutputMaxPeriods = form.spinEditOutputLimitPeriods.EditValue != null ? (Int32?)form.spinEditOutputLimitPeriods.Value : null; MediaMetaData.Instance.SettingsManager.UseSlideMaster = form.checkEditLockToMaster.Checked; RaiseSettingsChanged(new SettingsChangedEventArgs { ChangedSettingsType = ScheduleSettingsType.AdvancedColumns, UpdateGridColums = updateColumns }); } }
private void emailLinkEdit_OpenLink(object sender, OpenLinkEventArgs e) { e.Handled = true; if (!String.IsNullOrWhiteSpace(e.EditValue as string)) Process.Start("mailto: " + e.EditValue); }
private void OnOpenFileLink(object sender, OpenLinkEventArgs e) { e.EditValue = (advBandedGridViewData.GetFocusedRow() as FileActivityReportModel)?.FileLink; }
private void OnContractSettingsEdit(object sender, OpenLinkEventArgs e) { e.Handled = true; using (var form = new FormContractSettings()) { switch (_selectedEditorType) { case SnapshotEditorType.Schedule: case SnapshotEditorType.DigitalInfo: form.checkEditShowSignatureLine.Checked = _editedSnapshot.ContractSettings.ShowSignatureLine; form.checkEditShowRatesExpiration.Checked = _editedSnapshot.ContractSettings.RateExpirationDate.HasValue; form.checkEditShowDisclaimer.Checked = _editedSnapshot.ContractSettings.ShowDisclaimer; form.dateEditRatesExpirationDate.EditValue = _editedSnapshot.ContractSettings.RateExpirationDate; break; case SnapshotEditorType.Summary: form.checkEditShowSignatureLine.Checked = _editedContent.SnapshotSummary.ContractSettings.ShowSignatureLine; form.checkEditShowRatesExpiration.Checked = _editedContent.SnapshotSummary.ContractSettings.RateExpirationDate.HasValue; form.checkEditShowDisclaimer.Checked = _editedContent.SnapshotSummary.ContractSettings.ShowDisclaimer; form.dateEditRatesExpirationDate.EditValue = _editedContent.SnapshotSummary.ContractSettings.RateExpirationDate; break; default: return; } if (form.ShowDialog() != DialogResult.OK) return; switch (_selectedEditorType) { case SnapshotEditorType.Schedule: case SnapshotEditorType.DigitalInfo: _editedSnapshot.ContractSettings.ShowSignatureLine = form.checkEditShowSignatureLine.Checked; _editedSnapshot.ContractSettings.ShowDisclaimer = form.checkEditShowDisclaimer.Checked; _editedSnapshot.ContractSettings.RateExpirationDate = (DateTime?)form.dateEditRatesExpirationDate.EditValue; if (_editedContent.SnapshotSummary.ApplySettingsForAll) { foreach (var Snapshot in _editedContent.Snapshots.Where(os => os.UniqueID != _editedSnapshot.UniqueID)) { Snapshot.ContractSettings.ShowSignatureLine = _editedSnapshot.ContractSettings.ShowSignatureLine; Snapshot.ContractSettings.ShowDisclaimer = _editedSnapshot.ContractSettings.ShowDisclaimer; Snapshot.ContractSettings.RateExpirationDate = _editedSnapshot.ContractSettings.RateExpirationDate; } } break; case SnapshotEditorType.Summary: _editedContent.SnapshotSummary.ContractSettings.ShowSignatureLine = form.checkEditShowSignatureLine.Checked; _editedContent.SnapshotSummary.ContractSettings.ShowDisclaimer = form.checkEditShowDisclaimer.Checked; _editedContent.SnapshotSummary.ContractSettings.RateExpirationDate = (DateTime?)form.dateEditRatesExpirationDate.EditValue; break; default: return; } RaiseSettingsChanged(new SettingsChangedEventArgs { ChangedSettingsType = SnapshotSettingsType.Contract }); } }
private void OnResetClick(object sender, OpenLinkEventArgs e) { advBandedGridView.PostEditor(); if (PopupMessageHelper.Instance.ShowWarningQuestion("Do you want to reset your Categories and Products to the original selections on the HOME Tab") == DialogResult.Yes) { _allowApplyValues = false; PackageSettings.ResetToDefault(); UpdateGridColumns(); foreach (var packageRecord in PackageRecords) packageRecord.ResetToDefault(); advBandedGridView.RefreshData(); RaiseDataChanged(); _allowApplyValues = true; } e.Handled = true; }
void hyperLinkProperties_OpenLink(object sender, OpenLinkEventArgs e) { e.EditValue = GetResolvedUrl(e.EditValue); }
private void hyperLinkEdit1_OpenLink(object sender, OpenLinkEventArgs e) { openLink(); }
private void repositoryItemHyperLinkEditRichMedia_OpenLink(object sender, OpenLinkEventArgs e) { e.Handled = true; var digitalProduct = advBandedGridView.GetFocusedRow() as DigitalProduct; if (digitalProduct == null) return; using (var form = new FormProductInfo(ProductInfoType.RichMedia, digitalProduct)) { if (form.ShowDialog() == DialogResult.OK) _onDataChanged(); } advBandedGridView.CloseEditor(); }
private void linkLabel1_OpenLink(object sender, OpenLinkEventArgs e) { linkLabel1_Properties_Click(null, null); }
public void ResetProductName(object sender, OpenLinkEventArgs e) { e.Handled = true; if (PopupMessageHelper.Instance.ShowWarningQuestion( String.Format("Are you SURE you want to Wipe Everything{0}and reset the data for this Digital Product ? ", Environment.NewLine)) != DialogResult.Yes) return; Product.UserDefinedName = null; memoEditProductName.EditValue = Product.ExtendedName; }
private void recipientAddresses_OpenLink(object sender, OpenLinkEventArgs e) { var str = e.EditValue as string; if (!String.IsNullOrWhiteSpace(str)) Process.Start("mailto: " + str); e.Handled = true; }
private void OnOpenFileLink(object sender, OpenLinkEventArgs e) { e.EditValue = (gridViewData.GetFocusedRow() as UserActivity)?.FileLink; }