public void RemoveTimeFootnote(PxObject context, PxFootnote footnote) { ((PxTime)lbTimePeriods.SelectedItem).TimeFootnotes.Remove((PxTimeFootnote)footnote); if (!footnote.IsNew) { ((PxTime)lbTimePeriods.SelectedItem).RemovedTimeFootnotes.Add((PxTimeFootnote)footnote); } }
public void RemoveContentValueFootnote(PxObject context, PxFootnote footnote) { SelectedContent.ContentValueFootnotes.Remove((PxContentValueFootnote)footnote); if (!footnote.IsNew) { SelectedContent.RemovedContentValueFootnotes.Add((PxContentValueFootnote)footnote); } }
public void RemoveMainTableFootnote(PxObject context, PxFootnote footnote) { _table.Footnotes.Remove((PxMainTableFootnote)footnote); if (!footnote.IsNew) { _table.RemovedFootnotes.Add((PxMainTableFootnote)footnote); _table.MarkAsDirty(); } }
private void btnAddFootnote_Click(object sender, EventArgs e) { PxFootnote footnote = AddFotnoteHandler(Context); _list.Add(footnote); ((CurrencyManager)(lbFootnote.BindingContext[lbFootnote.DataSource])).Refresh(); lbFootnote.SelectedItem = footnote; pxFootnoteBindingSource.DataSource = footnote; }
public void RemoveMainTableValueFootnote(PxObject context, PxFootnote footnote) { SelectedMainTable.MainTableValueFootnotes.Remove((PxMainTableValueFootnote)footnote); if (!footnote.IsNew) { SelectedMainTable.RemovedMainTableValueFootnotes.Add((PxMainTableValueFootnote)footnote); ((PxValueSet)lbValuesets.SelectedItem).MarkAsDirty(); } }
public void RemoveVariableFootnote(PxObject context, PxFootnote footnote) { ((PxVariable)lbVariables.SelectedItem).VariableFootnotes.Remove((PxVariableFootnote)footnote); if (!footnote.IsNew) { ((PxVariable)lbVariables.SelectedItem).RemovedVariableFootnotes.Add((PxVariableFootnote)footnote); ((PxVariable)lbVariables.SelectedItem).MarkAsDirty(); _table.MarkAsDirty(); } }
public void RemoveContentFootnote(PxObject context, PxFootnote footnote) { ((PxContent)lbContents.SelectedItem).Footnotes.Remove((PxContentFootnote)footnote); if (!footnote.IsNew) { ((PxContent)lbContents.SelectedItem).RemovedFootnotes.Add((PxContentFootnote)footnote); ((PxContent)lbContents.SelectedItem).MarkAsDirty(); _table.MarkAsDirty(); } }
public void RemoveValueFootnote(PxObject context, PxFootnote footnote) { SelectedValue.ValueFootnotes.Remove((PxValueFootnote)footnote); if (!footnote.IsNew) { SelectedValue.RemovedValueFootnotes.Add((PxValueFootnote)footnote); SelectedValue.MarkAsDirty(); SelectedMainTable.MarkAsDirty(); } }