コード例 #1
0
ファイル: LCash_in_hand.cs プロジェクト: CODEXSUN/codexdotnet
 private void BuildForm()
 {
     if (fcash_in_hand == null)
     {
         fcash_in_hand = new FCash_in_hand();
     }
     fcash_in_hand.FCash_in_hand_NeedToRefresh += VCash_in_hand_NeedToRefresh;
     Parent.Controls.Add(fcash_in_hand);
     fcash_in_hand.Dock = DockStyle.Fill;
     fcash_in_hand.Show();
     fcash_in_hand.BringToFront();
 }
コード例 #2
0
ファイル: LCash_in_hand.cs プロジェクト: CODEXSUN/codexdotnet
        void txt_cash_in_hand_NewEntryNeeded(object sender, string pValue)
        {
            if (fscash_in_hand == null)
            {
                fscash_in_hand = new FCash_in_hand();
            }
            Parent.Controls.Add(fscash_in_hand);
            fscash_in_hand.Dock = DockStyle.Fill;
            fscash_in_hand.Show();
            fscash_in_hand.BringToFront();
            fscash_in_hand.Focus();

            fscash_in_hand.SetAction(BtnEvent.New, null);
            fscash_in_hand.SetFocus();
        }
コード例 #3
0
ファイル: LCash_in_hand.cs プロジェクト: CODEXSUN/codexdotnet
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fcash_in_hand == null)
            {
                fcash_in_hand = new FCash_in_hand();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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