Exemplo n.º 1
0
 private void BuildForm()
 {
     if (fstate == null)
     {
         fstate = new FState();
     }
     fstate.FState_NeedToRefresh += VState_NeedToRefresh;
     Parent.Controls.Add(fstate);
     fstate.Dock = DockStyle.Fill;
     fstate.Show();
     fstate.BringToFront();
 }
Exemplo n.º 2
0
        void txt_state_NewEntryNeeded(object sender, string pValue)
        {
            if (fsstate == null)
            {
                fsstate = new FState();
            }
            Parent.Controls.Add(fsstate);
            fsstate.Dock = DockStyle.Fill;
            fsstate.Show();
            fsstate.BringToFront();
            fsstate.Focus();

            fsstate.SetAction(BtnEvent.New, null);
            fsstate.SetFocus();
        }
Exemplo n.º 3
0
        void txt_state_NewEntryNeeded(object sender, string pValue)
        {
            if (xstate == null)
            {
                xstate = new FState();
                xstate.FState_NeedToRefresh += State_NeedToRefresh;
            }
            this.Parent.Controls.Add(xstate);
            xstate.Dock = DockStyle.Fill;
            xstate.Show();
            xstate.BringToFront();
            xstate.Focus();

            xstate.SetAction(BtnEvent.New, null);
            xstate.SetFocus();
            xstate.setname(pValue);
        }
Exemplo n.º 4
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fstate == null)
            {
                fstate = new FState();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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