コード例 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Hide();

            if (m_Type == typeof(FilterList))
            {
                SetCurrent(FilterBuilder.CreateFilter());
            }
            else if (m_Type == typeof(CodeBlock))
            {
                SetCurrent(frmListBuilder.CreateList(typeof(FilterList)));
            }
            else if (m_Type == typeof(Sequence))
            {
                SetCurrent(frmListBuilder.CreateList(typeof(CodeBlock)));
            }
            else if (m_Type == typeof(ActionList))
            {
                SetCurrent(ActionBuilder.CreateAction());
            }

            DoAdd();

            Show();
        }
コード例 #2
0
 private void actions_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (actions.SelectedItem != null)
     {
         Hide();
         if (actions.SelectedItem.GetType() == typeof(string))
         {
             ActionBuilder.CreateAction();
         }
         else
         {
             ActionBuilder.UpdateAction((UOAIBasic.Action)actions.SelectedItem);
         }
         Show();
         UpdateForm();
     }
 }