public EditFieldForm(Field f, Boolean isActive) : this() { field = f; active = isActive; isEdit = true; }
private void EditFieldForm_Load(object sender, EventArgs e) { if (field == null) { String name = "Field " + FieldList.GetFields().Count; String id = Guid.NewGuid().ToString(); field = new Field(name, id, true); this.Text = "New field"; } else { this.Text = "Edit field"; } tbFieldName.Text = field.Title; cbActive.Checked = active; }