/// <summary> /// このオブジェクトのクローンを作成します /// </summary> /// <returns>作成されたクローン</returns> public object Clone() { ConnectionProfile prof = new ConnectionProfile(); prof.m_channels = m_channels; prof.m_defchannels = m_defchannels; prof.m_encoding = m_encoding; prof.m_nickname = m_nickname; prof.m_noValidation = m_noValidation; prof.m_password = m_password; prof.m_port = m_port; prof.m_profileName = m_profileName; prof.m_realname = m_realname; prof.m_server = m_server; prof.m_useSsl = m_useSsl; return(prof); }
/// <summary> /// �v���t�@�C���̒lj��{�^�� /// </summary> private void profileAddButton_Click(object sender, EventArgs e) { using (ServerSettingForm serverSettingForm = new ServerSettingForm()) { ConnectionProfile prof = new ConnectionProfile(Resources.NewProfileName); serverSettingForm.Profile = prof; if (serverSettingForm.ShowDialog() == DialogResult.OK) { m_editingProfiles.Profile.Add(serverSettingForm.Profile); ReloadProfileList(); } } }
/// <summary> /// ���̃I�u�W�F�N�g�̃N���[����쐬���܂� /// </summary> /// <returns>�쐬���ꂽ�N���[��</returns> public object Clone() { ConnectionProfile prof = new ConnectionProfile(); prof.m_channels = m_channels; prof.m_defchannels = m_defchannels; prof.m_encoding = m_encoding; prof.m_nickname = m_nickname; prof.m_noValidation = m_noValidation; prof.m_password = m_password; prof.m_port = m_port; prof.m_profileName = m_profileName; prof.m_realname = m_realname; prof.m_server = m_server; prof.m_useSsl = m_useSsl; return prof; }