Beispiel #1
0
        private void GetDetailDataFromControlsManual(AEmailDestinationRow ARow)
        {
            ARow.EmailAddress = txtDetailEmailAddress.Text.Replace(Environment.NewLine, ",");

            if (!txtDetailConditionalValue.Enabled)
            {
                ARow.ConditionalValue = "NOT SET";
            }
        }
 private void ShowDetailsManual(AEmailDestinationRow ARow)
 {
     if (ARow != null)
     {
         string s = ARow.EmailAddress;
         s = s.Replace(",", Environment.NewLine);
         s = s.Replace(";", Environment.NewLine);
         txtDetailEmailAddress.Text = s;
     }
 }
Beispiel #3
0
 private void ShowDetailsManual(AEmailDestinationRow ARow)
 {
     if (ARow != null)
     {
         string s = ARow.EmailAddress;
         s = s.Replace(",", Environment.NewLine);
         s = s.Replace(";", Environment.NewLine);
         txtDetailEmailAddress.Text = s;
     }
 }
Beispiel #4
0
        private bool PreDeleteManual(AEmailDestinationRow ARowToDelete, ref string ADeletionQuestion)
        {
            if (txtDetailPartnerKey.LabelText.Length > 0)
            {
                ADeletionQuestion = Catalog.GetString("Are you sure you want to delete the current row?");

                ADeletionQuestion += String.Format("{0}{0}({1} {2}, {3} {4})",
                                                   Environment.NewLine,
                                                   lblDetailPartnerKey.Text,
                                                   txtDetailPartnerKey.LabelText,
                                                   lblDetailConditionalValue.Text,
                                                   txtDetailConditionalValue.Text);
            }

            return(true);
        }
        private void NewRowManual(ref AEmailDestinationRow ARow)
        {
            ARow.FileCode = "HOSA";
            ARow.PartnerKey = 0;
            string newValue = Catalog.GetString("NEWVALUE");
            int countNewValue = 1;

            if (FMainDS.AEmailDestination.Rows.Find(new object[] { ARow.FileCode, newValue, ARow.PartnerKey }) != null)
            {
                while (FMainDS.AEmailDestination.Rows.Find(new object[] {
                               ARow.FileCode,
                               newValue + countNewValue.ToString(),
                               ARow.PartnerKey
                           }) != null)
                {
                    countNewValue++;
                }

                newValue += countNewValue.ToString();
            }

            ARow.ConditionalValue = newValue;
            ARow.EmailAddress = String.Empty;
        }
Beispiel #6
0
        private void NewRowManual(ref AEmailDestinationRow ARow)
        {
            ARow.FileCode   = "HOSA";
            ARow.PartnerKey = 0;
            string newValue      = Catalog.GetString("NEWVALUE");
            int    countNewValue = 1;

            if (FMainDS.AEmailDestination.Rows.Find(new object[] { ARow.FileCode, newValue, ARow.PartnerKey }) != null)
            {
                while (FMainDS.AEmailDestination.Rows.Find(new object[] {
                    ARow.FileCode,
                    newValue + countNewValue.ToString(),
                    ARow.PartnerKey
                }) != null)
                {
                    countNewValue++;
                }

                newValue += countNewValue.ToString();
            }

            ARow.ConditionalValue = newValue;
            ARow.EmailAddress     = String.Empty;
        }
        private bool PreDeleteManual(AEmailDestinationRow ARowToDelete, ref string ADeletionQuestion)
        {
            if (txtDetailPartnerKey.LabelText.Length > 0)
            {
                ADeletionQuestion = Catalog.GetString("Are you sure you want to delete the current row?");

                ADeletionQuestion += String.Format("{0}{0}({1} {2}, {3} {4})",
                    Environment.NewLine,
                    lblDetailPartnerKey.Text,
                    txtDetailPartnerKey.LabelText,
                    lblDetailConditionalValue.Text,
                    txtDetailConditionalValue.Text);
            }

            return true;
        }
        private void GetDetailDataFromControlsManual(AEmailDestinationRow ARow)
        {
            ARow.EmailAddress = txtDetailEmailAddress.Text.Replace(Environment.NewLine, ",");

            if (!txtDetailConditionalValue.Enabled)
            {
                ARow.ConditionalValue = "NOT SET";
            }
        }