Exemplo n.º 1
0
 private void BuildForm()
 {
     if (fparty == null)
     {
         fparty = new FParty();
     }
     fparty.FParty_NeedToRefresh += VParty_NeedToRefresh;
     Parent.Controls.Add(fparty);
     fparty.Dock = DockStyle.Fill;
     fparty.Show();
     fparty.BringToFront();
 }
Exemplo n.º 2
0
        void txt_party_NewEntryNeeded(object sender, string pValue)
        {
            if (fsparty == null)
            {
                fsparty = new FParty();
            }
            Parent.Controls.Add(fsparty);
            fsparty.Dock = DockStyle.Fill;
            fsparty.Show();
            fsparty.BringToFront();
            fsparty.Focus();

            fsparty.SetAction(BtnEvent.New, null);
            fsparty.SetFocus();
        }
Exemplo n.º 3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fparty == null)
            {
                fparty = new FParty();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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