Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {            
     res = new BioConversation.EntryListReplyListStruct();
     int n = pcc.findName("EReplyCategory");
     if (n == -1)
     {
         MessageBox.Show("Please add Name \"EReplyCategory\"");
         state = -1;
         return;
     }
     res.Paraphrase = textBox1.Text;
     res.refParaphrase = Int32.Parse(textBox2.Text);
     res.CategoryType = n;
     res.CategoryValue = Int32.Parse(textBox3.Text);
     res.Index = Int32.Parse(textBox4.Text);
     state = 1;
 }
Beispiel #2
0
 private void entrysReplyListEntryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode t = treeView1.SelectedNode;
     if (t == null || t.Parent == null)
         return;
     TreeNode p = t.Parent;
     if (p.Parent != null && p.Index == 0)
     {
         BioConversation.EntryListStuct el = Dialog.EntryList[p.Parent.Index];
         BioConversation.EntryListReplyListStruct rpe0 = el.ReplyList[t.Index];
         BioConversation.EntryListReplyListStruct rpe = new BioConversation.EntryListReplyListStruct();
         rpe.CategoryType = rpe0.CategoryType;
         rpe.CategoryValue = rpe0.CategoryValue;
         rpe.Index = rpe0.Index;
         rpe.Paraphrase = "" + rpe0.Paraphrase;
         rpe.refParaphrase = rpe0.refParaphrase;
         el.ReplyList.Add(rpe);
         Dialog.EntryList[p.Parent.Index] = el;
         RefreshTabs();
     }
 }
Beispiel #3
0
 private void entryListEntryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     TreeNode t = treeView1.SelectedNode;
     if (t == null || t.Parent != null)
         return;
     BioConversation.EntryListStuct el0 = Dialog.EntryList[t.Index];
     BioConversation.EntryListStuct el = new BioConversation.EntryListStuct();
     el.ReplyList = new List<BioConversation.EntryListReplyListStruct>();
     foreach (BioConversation.EntryListReplyListStruct rpe0 in el0.ReplyList)
     {
         BioConversation.EntryListReplyListStruct rpe = new BioConversation.EntryListReplyListStruct();
         rpe.CategoryType = rpe0.CategoryType;
         rpe.CategoryValue = rpe0.CategoryValue;
         rpe.Index = rpe0.Index;
         rpe.Paraphrase = "" + rpe0.Paraphrase;
         rpe.refParaphrase = rpe0.refParaphrase;
         el.ReplyList.Add(rpe);
     }
     el.SpeakerList = new List<int>();
     foreach (int i in el0.SpeakerList)
         el.SpeakerList.Add(i);
     el.AlwaysHideSubtitle = el0.AlwaysHideSubtitle;
     el.Ambient = el0.Ambient;
     el.CameraIntimacy = el0.CameraIntimacy;
     el.ConditionalFunc = el0.ConditionalFunc;
     el.ConditionalParam = el0.ConditionalParam;
     el.ExportID = el0.ExportID;
     el.FireConditional = el0.FireConditional;
     el.GUIStyleType = el0.GUIStyleType;
     el.GUIStyleValue = el0.GUIStyleValue;
     el.IgnoreBodyGestures = el0.IgnoreBodyGestures;
     el.ListenerIndex = el0.ListenerIndex;
     el.NonTextline = el0.NonTextline;
     el.refText = el0.refText;
     el.ScriptIndex = el0.ScriptIndex;
     el.Skippable = el0.Skippable;
     el.SpeakerIndex = el0.SpeakerIndex;
     el.StateTransition = el0.StateTransition;
     el.StateTransitionParam = el0.StateTransitionParam;
     el.Text = "" + el0.Text;
     Dialog.EntryList.Add(el);
     RefreshTabs();
 }