Esempio n. 1
0
 //--------------------------------------------
 public CWndTypeTicket(CTypeTicket typeTicket)
     : base()
 {
     m_typeTicket = typeTicket;
     Position     = new Point(0, 0);
     Size         = new Size(1000, 1000);
 }
Esempio n. 2
0
        //--------------------------------------------------
        public static CWndTypeTicket GetNewWnd(CTypeTicket typeTicket)
        {
            CWndTypeTicket wnd = new CWndTypeTicket(typeTicket);
            Dictionary <CTypeTicket_TypePhase, CWndTypeTypeTicket_TypePhase> tablePhases = new Dictionary <CTypeTicket_TypePhase, CWndTypeTypeTicket_TypePhase>();

            foreach (CTypeTicket_TypePhase typePhase in typeTicket.RelationsTypesPhases)
            {
                CWndTypeTypeTicket_TypePhase wndTypePhase = new CWndTypeTypeTicket_TypePhase(typePhase);
                tablePhases[typePhase] = wndTypePhase;
                wnd.AddChild(wndTypePhase);
            }
            foreach (CTypeTicket_TypePhase typePhase in typeTicket.RelationsTypesPhases)
            {
                foreach (CLienTypePhase lien in typePhase.RelationsTypesPhasesSuivantes)
                {
                    CWndLienTypePhase_TypePhase wndLien = new CWndLienTypePhase_TypePhase();
                    wndLien.TypePhaseDepart  = tablePhases[typePhase];
                    wndLien.TypePhaseArrivee = tablePhases[lien.ToTypePhase];
                    wndLien.Lien             = lien;
                    wnd.AddChild(wndLien);
                }
            }
            return(wnd);
        }