Ejemplo n.º 1
0
 private void BuildForm()
 {
     if (fStyle == null)
     {
         fStyle = new FStyle();
     }
     fStyle.FStyle_NeedToRefresh += VStyle_NeedToRefresh;
     Parent.Controls.Add(fStyle);
     fStyle.Dock = DockStyle.Fill;
     fStyle.Show();
     fStyle.BringToFront();
 }
Ejemplo n.º 2
0
 void FstyleNewEntry(string pValue)
 {
     if (xstyle == null)
     {
         xstyle = new FStyle();
         xstyle.FStyle_NeedToRefresh += Xproduct_refresh;
     }
     this.Parent.Controls.Add(xstyle);
     xstyle.Dock = DockStyle.Fill;
     xstyle.Show();
     xstyle.BringToFront();
     xstyle.Focus();
     xstyle.SetAction(BtnEvent.New, null);
     xstyle.SetFocus();
 }
Ejemplo n.º 3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fStyle == null)
            {
                fStyle = new FStyle();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

            if (pkValue != null)
            {
                fStyle.SetAction(BtnEvent.Open, pkValue);
            }
        }