Exemplo n.º 1
0
        private void btnAddNounFrame_Click(object sender, EventArgs e)
        {
            FrmAddEditFrame form = new FrmAddEditFrame("Add noun frame");

            if (form.ShowDialog() == DialogResult.OK)
            {
                this.tmr.Nounframes.Add(form.nounResult);
                UpdateCmbNouns();
                this.viewer.AddNounFrameEntity(form.nounResult, new Point(0, 0));
            }
        }
Exemplo n.º 2
0
        private void btnAddVerbFrame_Click(object sender, EventArgs e)
        {
            FrmAddEditFrame form = new FrmAddEditFrame("Add verb frame");

            if (form.ShowDialog() == DialogResult.OK)
            {
                this.verbs.Add(form.verbResult);
                UpdateCmbVerbs();
                this.viewer.AddVerbFrameEntity(form.verbResult, new Point(0, 0));
            }
        }
Exemplo n.º 3
0
 private void btnEditVerbFrame_Click(object sender, EventArgs e)
 {
     if (this.cmbVerbFrame.SelectedIndex != -1)
     {
         FrmAddEditFrame form = new FrmAddEditFrame(this.tmr.VerbFrames[this.cmbVerbFrame.SelectedIndex]);
         if (form.ShowDialog() == DialogResult.OK)
         {
             this.tmr.VerbFrames[this.cmbVerbFrame.SelectedIndex] = form.verbResult;
             UpdateCmbNouns();
         }
     }
 }