Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        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);
            }
        }