private void ShowDetailsManual(PAddressLayoutCodeRow ARow)
 {
     if (FIndexedGridRowsHelper != null)
     {
         FIndexedGridRowsHelper.UpdateButtons(GetSelectedRowIndex(), FPetraUtilsObject.SecurityReadOnly);
     }
 }
Esempio n. 2
0
        private void ShowDetailsManual(PPartnerAttributeTypeRow ARow)
        {
            if (ARow == null)
            {
                cmbDetailAttributeTypeValueKind.SelectedIndex = 0;

                return;
            }
            else
            {
                switch (ARow.AttributeTypeValueKind)
                {
                case "CONTACTDETAIL_GENERAL":
                    cmbDetailAttributeTypeValueKind.SelectedIndex = 0;
                    break;

                case "CONTACTDETAIL_HYPERLINK":
                    cmbDetailAttributeTypeValueKind.SelectedIndex = 2;
                    break;

                case "CONTACTDETAIL_HYPERLINK_WITHVALUE":
                    cmbDetailAttributeTypeValueKind.SelectedIndex = 3;
                    break;

                case "CONTACTDETAIL_EMAILADDRESS":
                    cmbDetailAttributeTypeValueKind.SelectedIndex = 1;
                    break;

                case "CONTACTDETAIL_SKYPEID":
                    cmbDetailAttributeTypeValueKind.SelectedIndex = 4;
                    break;

                default:
                    cmbDetailAttributeTypeValueKind.SelectedIndex = 0;
                    break;
                }
            }

            FIndexedGridRowsHelper.UpdateButtons(GetSelectedRowIndex());
        }
        private void ShowDetailsManual(PPartnerAttributeCategoryRow ARow)
        {
            if (ARow == null)
            {
                pnlDetails.Enabled = false;
                ucoValues.Enabled  = false;
            }
            else
            {
                pnlDetails.Enabled = true;
                ucoValues.Enabled  = true;

                // Pass the category code to the user control - it will then update itself
                ucoValues.SetCategoryCode(txtDetailCategoryCode.Text);
            }

            // Need to do the enabling/disabling of the Delete button manually as no auto-generated code
            // gets created since we have our own Delete handling ('DeleteRecord' Method in ManualCode file)
            btnDelete.Enabled = pnlDetails.Enabled && chkDetailDeletable.Checked;

            FIndexedGridRowsHelper.UpdateButtons(GetSelectedRowIndex());
        }
Esempio n. 4
0
 void HandleSelectionChanged(object sender, SourceGrid.RangeRegionChangedEventArgs e)
 {
     FIndexedGridRowsHelper.UpdateButtons(grdDetails.Selection.ActivePosition.Row);
 }
 void HandleSelectionChanged(object sender, SourceGrid.RangeRegionChangedEventArgs e)
 {
     FIndexedGridRowsHelper.UpdateButtons(grdDetails.Selection.ActivePosition.Row, FPetraUtilsObject.SecurityReadOnly);
 }