Пример #1
0
        private void mnuProfileSettings_Click(object sender, EventArgs e)
        {
            using (frmSettings frm = new frmSettings(_service))
            {
                if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                {
                    if (frm.PasswordChangeRequest)
                    {
                        _profile.ChangePassword(frm.Password);
                    }

                    if (frm.Port != _profile.LocalEP.Port)
                    {
                        _profile.LocalEP = new IPEndPoint(0, frm.Port);
                    }

                    _profile.DownloadFolder = frm.DownloadFolder;
                    _profile.CheckCertificateRevocationList = frm.CheckCertificateRevocationList;
                    _profile.TrackerURIs = frm.Trackers;

                    SaveProfile();
                }
            }
        }
Пример #2
0
        private void mnuProfileSettings_Click(object sender, EventArgs e)
        {
            using (frmSettings frm = new frmSettings(_service))
            {
                if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
                {
                    if (frm.PasswordChangeRequest)
                        _profile.ChangePassword(frm.Password);

                    if (frm.Port != _profile.LocalEP.Port)
                        _profile.LocalEP = new IPEndPoint(0, frm.Port);

                    _profile.DownloadFolder = frm.DownloadFolder;
                    _profile.CheckCertificateRevocationList = frm.CheckCertificateRevocationList;
                    _profile.TrackerURIs = frm.Trackers;

                    SaveProfile();
                }
            }
        }