예제 #1
0
 public FrmLabelEditor(Models.WebAction act)
 {
     InitializeComponent();
     elbo          = new BO.ElementLabelBO();
     _lbl          = new Models.ElementLabel();
     _action       = act;
     _lbl.ActionId = _action.ActionId;
 }
예제 #2
0
        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);
        }
예제 #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);
        }
예제 #4
0
 public FrmActionEditor(int actionId)
 {
     InitWindow();
     _action = abo.GetAction(actionId);
 }