public FrmLabelEditor(Models.WebAction act) { InitializeComponent(); elbo = new BO.ElementLabelBO(); _lbl = new Models.ElementLabel(); _action = act; _lbl.ActionId = _action.ActionId; }
private void btnAdd_Click(object sender, EventArgs e) { var abo = new BO.ActionBO(); var action = new Models.WebAction(); action.ActionName = txtActionName.Text; abo.Add(action); }
public FrmLabelEditor(Models.ElementLabel lbl) { InitializeComponent(); elbo = new BO.ElementLabelBO(); if (lbl.LabelId == 0) { _lbl = new Models.ElementLabel(); } else { _lbl = elbo.GetLabel(lbl.LabelId); _lbl.ActionId = lbl.ActionId; } var abo = new BO.ActionBO(); _action = abo.GetAction(_lbl.ActionId); }
public FrmActionEditor(int actionId) { InitWindow(); _action = abo.GetAction(actionId); }