示例#1
0
 private void BuildForm()
 {
     if (finvoice == null)
     {
         finvoice = new FCreditnote();
     }
     finvoice.FCreditnote_NeedToRefresh += VCreditnote_NeedToRefresh;
     Parent.Controls.Add(finvoice);
     finvoice.Dock = DockStyle.Fill;
     finvoice.Show();
     finvoice.BringToFront();
 }
示例#2
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (finvoice == null)
            {
                finvoice = new FCreditnote();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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