Beispiel #1
0
 private void BuildForm()
 {
     if (fquotation == null)
     {
         fquotation = new FQuotation();
     }
     fquotation.FQuotation_NeedToRefresh += VQuotation_NeedToRefresh;
     Parent.Controls.Add(fquotation);
     fquotation.Dock = DockStyle.Fill;
     fquotation.Show();
     fquotation.BringToFront();
 }
Beispiel #2
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fquotation == null)
            {
                fquotation = new FQuotation();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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