Beispiel #1
0
        private void NewRowManual(ref PReasonSubscriptionCancelledRow ARow)
        {
            string newName        = Catalog.GetString("NEWREASON");
            Int32  countNewDetail = 0;

            if (FMainDS.PReasonSubscriptionCancelled.Rows.Find(new object[] { newName }) != null)
            {
                while (FMainDS.PReasonSubscriptionCancelled.Rows.Find(new object[] { newName + countNewDetail.ToString() }) != null)
                {
                    countNewDetail++;
                }

                newName += countNewDetail.ToString();
            }

            ARow.Code = newName;
        }
        private void NewRowManual(ref PReasonSubscriptionCancelledRow ARow)
        {
            string newName = Catalog.GetString("NEWREASON");
            Int32 countNewDetail = 0;

            if (FMainDS.PReasonSubscriptionCancelled.Rows.Find(new object[] { newName }) != null)
            {
                while (FMainDS.PReasonSubscriptionCancelled.Rows.Find(new object[] { newName + countNewDetail.ToString() }) != null)
                {
                    countNewDetail++;
                }

                newName += countNewDetail.ToString();
            }

            ARow.Code = newName;
        }