protected override void OnParentChanged(EventArgs e)
        {
            base.OnParentChanged(e);

            Form form = this.ParentForm;

            if (form is TripperContainerPureForm)
            {
                TripperContainerPureForm ParentForm = form as TripperContainerPureForm;
                ParentForm.DisplayedForm = this;
            }
        }
Exemplo n.º 2
0
        public void OpenTripMainList()
        {
            if (!(currentContainer is TripMainList))
            {
                if (currentContainer != null)
                {
                    currentContainer.Close();
                }

                currentContainer = new TripMainList(SelectedTraveler);
                ((TripMainList)currentContainer).DockForm(pCenter);
            }
        }
Exemplo n.º 3
0
        public void OpenTripDetalis()
        {
            if (!(currentContainer is TripContainerView) && currentContainer != null)
            {
                if (currentContainer != null)
                {
                    currentContainer.Close();
                }

                currentContainer = new TripContainerView(CurrentSelected.Trip);
                ((TripContainerView)currentContainer).DockForm(pCenter);
                tcFilter.SelectTab(tripDetailsFilterPage);
                currentContainer.FormClosed += currentContainer_FormClosed;
            }
        }
Exemplo n.º 4
0
 private void currentContainer_FormClosed(object sender, FormClosedEventArgs e)
 {
     currentContainer.FormClosed -= currentContainer_FormClosed;
     currentContainer             = new TripMainList(SelectedTraveler);
     ((TripMainList)currentContainer).DockForm(pCenter);
 }