void Initialize(List <EntityDef.Method> methods, EntityDef.Method method) { m_methods = methods; m_method = method; if (m_method == null) { m_method = new EntityDef.Method(); } if (!string.IsNullOrEmpty(m_method.Name)) { m_txt_name.Text = m_method.Name; } m_cb_exposed.Checked = m_method.Exposed; if (m_method.Utype.HasValue) { m_txt_utype.Text = m_method.Utype.ToString(); } foreach (var item in BaseType.AllTypes) { m_lb_alltypes.Items.Add(item.TypeName); } foreach (var item in m_method.Args) { m_lb_args.Items.Add(item.TypeName); } }
public MethodWindow(List <EntityDef.Method> methods, EntityDef.Method method) { InitializeComponent(); Initialize(methods, method); }