Exemplo n.º 1
0
        private void ClickModify(object sender, EventArgs arg)
        {
            FormParamNew form = new FormParamNew();

            form.Entity = this.myGridView1.FindFirstSelect <Param>();
            form.ShowDialog();
            xmlBll.Load();
            this.myGridView1.LoadData(this.xmlBll.ActionList, base.ignoreFields);
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormParamNew form = new FormParamNew();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.paramList.Add(form.Entity);
            }
            this.myGridView1.DataSource = null;
            this.myGridView1.LoadData(this.paramList, base.ignoreFields);
            this.myGridView1.Refresh();
            this.Refresh();
        }
Exemplo n.º 3
0
        private void ClickAdd(object sender, EventArgs arg)
        {
            this.isModify = false;
            FormParamNew form = new FormParamNew();

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                if (this.Entity == null)
                {
                    this.Entity           = new Params();
                    this.Entity.Id        = Guid.NewGuid().ToString();
                    this.Entity.ParamList = new List <Param>();
                }
                this.Entity.ParamList.Add(form.Entity);
            }
            this.myGridView1.LoadData(this.Entity.ParamList, base.ignoreFields);
            this.myGridView1.Refresh();
            this.Refresh();
        }