 //    	aWindow.bottomBarHeight = aWindow.titleBarHeight;
 //	NSView *titleBarView = aWindow.titleBarView;
         
-        selectModule(0)
+        selectModule(TrainBook)
         
         self.window?.recalculateKeyViewLoop()
         

    var taskViewController:TaskViewController?
    
    var loginWindowController:LoginWindowController!
    
    override func windowDidLoad()
    {

            NSMidY(titleView.bounds) - (segmentSize.height / 2.0),
            segmentSize.width, segmentSize.height)
        let segment = NSSegmentedControl(frame: segmentFrame)
        segment.segmentCount = 2
        segment.setLabel(TrainBook, forSegment: 0)
        segment.setLabel(TrainOrder, forSegment: 1)
//        segment.setLabel(TainTask, forSegment: 2)
        segment.selectedSegment = 0
        segment.segmentStyle = NSSegmentStyle.TexturedSquare
        segment.target = self
