Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            mileHandler = new MILE_Handler("Mile");
            yardHandler = mileHandler.SetNext(new YARD_Handler("Yard"));
            footHandler = yardHandler.SetNext(new FOOT_Handler("Foot"));
        }
Ejemplo n.º 2
0
 public ConvertHandler SetNext(ConvertHandler nextHandler)
 {
     next = nextHandler;
     return(nextHandler);
 }