Пример #1
0
        void Button_Save_Click(object sender, EventArgs e)
        {
            UserInfo userInfo = new UserInfo();

            if (ProfileControl1.DropDownList_Language.SelectedIndex == 0)
	        {
        	    userInfo.LanguageIsEnglish = true;
            }
            else
            {
                userInfo.LanguageIsEnglish = false;
            }

            userInfo.Code = ProfileControl1.TextBox_Code.Text;
            userInfo.Phone = ProfileControl1.TextBox_Number.Text;
            userInfo.Name = ProfileControl1.TextBox_Name.Text;
            userInfo.SurName = ProfileControl1.TextBox_SurName.Text;
            userInfo.Address = ProfileControl1.TextBox_Address.Text;

            ProfileActions profileActions = new ProfileActions();
            profileActions.AddInfo(userID, userInfo);
        }