示例#1
0
 private void BuildForm()
 {
     if (ftransport == null)
     {
         ftransport = new FTransport();
     }
     ftransport.FTransport_NeedToRefresh += VTransport_NeedToRefresh;
     Parent.Controls.Add(ftransport);
     ftransport.Dock = DockStyle.Fill;
     ftransport.Show();
     ftransport.BringToFront();
 }
示例#2
0
        void txt_transport_NewEntryNeeded(object sender, string pValue)
        {
            if (fstransport == null)
            {
                fstransport = new FTransport();
            }
            Parent.Controls.Add(fstransport);
            fstransport.Dock = DockStyle.Fill;
            fstransport.Show();
            fstransport.BringToFront();
            fstransport.Focus();

            fstransport.SetAction(BtnEvent.New, null);
            fstransport.SetFocus();
        }
示例#3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (ftransport == null)
            {
                ftransport = new FTransport();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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