hMailServer.Administrator.formGreyListingWhiteAddress.SaveProperties C# (CSharp) Method

SaveProperties() public method

public SaveProperties ( hMailServer whiteAddress ) : void
whiteAddress hMailServer
return void
        public void SaveProperties(hMailServer.GreyListingWhiteAddress whiteAddress)
        {
            whiteAddress.IPAddress = textIPAddress.Text;
             whiteAddress.Description = textDescription.Text;
        }

Usage Example

Example #1
0
        private void buttonEditWhiteList_Click(object sender, EventArgs e)
        {
            if (listWhitelistingRecords.SelectedItems.Count != 1)
            {
                return;
            }

            int id = Convert.ToInt32(listWhitelistingRecords.SelectedItems[0].Tag);
            GreyListingWhiteAddresses addresses = APICreator.GreylistingWhiteAddresses;

            hMailServer.GreyListingWhiteAddress whiteAddress =
                addresses.get_ItemByDBID(id);

            formGreyListingWhiteAddress whiteDlg = new formGreyListingWhiteAddress();

            whiteDlg.LoadProperties(whiteAddress);

            if (whiteDlg.ShowDialog() == DialogResult.OK)
            {
                whiteDlg.SaveProperties(whiteAddress);

                whiteAddress.Save();

                ListWhiteListAddresses();
            }

            Marshal.ReleaseComObject(whiteAddress);
            Marshal.ReleaseComObject(addresses);
        }
All Usage Examples Of hMailServer.Administrator.formGreyListingWhiteAddress::SaveProperties