예제 #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);
            }
        }