Exemple #1
0
 private void BuildForm()
 {
     if (fuser == null)
     {
         fuser = new FUser();
     }
     fuser.FUser_NeedToRefresh += VUser_NeedToRefresh;
     Parent.Controls.Add(fuser);
     fuser.Dock = DockStyle.Fill;
     fuser.Show();
     fuser.BringToFront();
 }
Exemple #2
0
        void txt_user_NewEntryNeeded(object sender, string pValue)
        {
            if (fsuser == null)
            {
                fsuser = new FUser();
            }
            Parent.Controls.Add(fsuser);
            fsuser.Dock = DockStyle.Fill;
            fsuser.Show();
            fsuser.BringToFront();
            fsuser.Focus();

            fsuser.SetAction(BtnEvent.New, null);
            fsuser.SetFocus();
        }
Exemple #3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fuser == null)
            {
                fuser = new FUser();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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