예제 #1
0
        protected void ButtonSubmit_Click(object sender, EventArgs e)
        {
            DR_Fragments frag = new DR_Fragments();
            frag.SaveChanges();

            DR_FragmentLRA LRA = new DR_FragmentLRA();
            LRA.ID = frag.ID;
            LRA._Text = textBoxLRA.Text;
        }
예제 #2
0
        void submit_Click(object sender, EventArgs e)
        {
            DR_Fragments newFrag = new DR_Fragments();
            newFrag.Text = text.Text;
            string feedback1 = feedback.SelectedValue; ; //Update this
            if (feedback1 == "Positive")
                newFrag._BaseWeight = FragmentFeedback.Positive;
            else if (feedback1 == "Negative")
                newFrag._BaseWeight = FragmentFeedback.Negative;
            else
                newFrag._BaseWeight = FragmentFeedback.None;
            newFrag.SaveChanges();

            parentFragment.AttachChildNodeWithNewEdge(newFrag, typeof(Fragment2Fragment_Reply));

            WebDirector.Instance.Redirect("/fragments/view?id=" + newFrag.ID);
        }