예제 #1
0
        private void mnuMyProfile_Click(object sender, EventArgs e)
        {
            using (frmEditProfile frm = new frmEditProfile(_node))
            {
                switch (frm.ShowDialog(this))
                {
                case DialogResult.OK:
                    _node.UpdateProfile(frm.ProfileDisplayName, frm.ProfileStatus, frm.ProfileStatusMessage);
                    _node.UpdateProfileDisplayImage(frm.ProfileDisplayImage);
                    SaveProfile();

                    lblProfileDisplayName.Text = frm.ProfileDisplayName;
                    break;

                case DialogResult.Yes:
                    SaveProfile();
                    break;
                }
            }
        }