コード例 #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);
 }