public FrmLabelEditor(Models.WebAction act) { InitializeComponent(); elbo = new BO.ElementLabelBO(); _lbl = new Models.ElementLabel(); _action = act; _lbl.ActionId = _action.ActionId; }
public FrmLabelNavigator(Objects.WebActionObject act, Models.ElementLabel lbl, string msg) { InitializeComponent(); _initMsg = msg; _act = act; dgLabels.AutoGenerateColumns = false; dgLabels.SelectionMode = DataGridViewSelectionMode.FullRowSelect; dgLabels.CellClick += DgLabels_CellClick; }
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 void Delete(ElementLabel lbl) { entities.ElementLabels.Remove(lbl); }
public void Add(ElementLabel lbl) { entities.ElementLabels.Add(lbl); }