private void BuildForm() { if (farticle == null) { farticle = new FArticle(); } farticle.FArticle_NeedToRefresh += VArticle_NeedToRefresh; Parent.Controls.Add(farticle); farticle.Dock = DockStyle.Fill; farticle.Show(); farticle.BringToFront(); }
void txt_article_NewEntryNeeded(object sender, string pValue) { if (fsarticle == null) { fsarticle = new FArticle(); } Parent.Controls.Add(fsarticle); fsarticle.Dock = DockStyle.Fill; fsarticle.Show(); fsarticle.BringToFront(); fsarticle.Focus(); fsarticle.SetAction(BtnEvent.New, null); fsarticle.SetFocus(); }
void FArticleNewEntry(string pValue) { if (xarticle == null) { xarticle = new FArticle(); xarticle.FArticle_NeedToRefresh += Xarticle_refresh; } this.Parent.Controls.Add(xarticle); xarticle.Dock = DockStyle.Fill; xarticle.Show(); xarticle.BringToFront(); xarticle.Focus(); xarticle.SetAction(BtnEvent.New, null); xarticle.SetFocus(); xarticle.setname(pValue); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (farticle == null) { farticle = new FArticle(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { farticle.SetAction(BtnEvent.Open, pkValue); } }