示例#1
0
        private void NewProfile()
        {
            ProfileForm  form    = new ProfileForm();
            DialogResult nResult = form.ShowDialog();

            if (nResult == DialogResult.OK)
            {
                ProfileController.getInstance().Init(form.Profile);
                this.Profile = form.Profile;
                LoadProfile();
            }
        }
示例#2
0
        private void mNewProfileButton_Click(object sender, EventArgs e)
        {
            ProfileForm form = new ProfileForm();

            form.ShowDialog(this);
            if (form.DialogResult == DialogResult.OK)
            {
                Profile nProfile = form.Profile;
                ProfileController.getInstance().Init(nProfile);
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
        }