예제 #1
0
 private void BuildForm()
 {
     if (frole == null)
     {
         frole = new FRole();
     }
     frole.FRole_NeedToRefresh += VRole_NeedToRefresh;
     Parent.Controls.Add(frole);
     frole.Dock = DockStyle.Fill;
     frole.Show();
     frole.BringToFront();
 }
예제 #2
0
        void txt_role_NewEntryNeeded(object sender, string pValue)
        {
            if (fsrole == null)
            {
                fsrole = new FRole();
            }
            Parent.Controls.Add(fsrole);
            fsrole.Dock = DockStyle.Fill;
            fsrole.Show();
            fsrole.BringToFront();
            fsrole.Focus();

            fsrole.SetAction(BtnEvent.New, null);
            fsrole.SetFocus();
        }
예제 #3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (frole == null)
            {
                frole = new FRole();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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