Exemple #1
0
 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;
 }
Exemple #3
0
        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);
        }
Exemple #4
0
 public void Delete(ElementLabel lbl)
 {
     entities.ElementLabels.Remove(lbl);
 }
Exemple #5
0
 public void Add(ElementLabel lbl)
 {
     entities.ElementLabels.Add(lbl);
 }