public MainViewController()
 {
     sb = new StringBuilder();
     MainView = new MainView(this);
     View = MainView;
     rscMgr = new RscMgr();
     rscMgr.Delegate = new RedParkDelegate(this);
     rscMgr.Baud = 9600;
     Console.WriteLine("Baud {0}", rscMgr.Baud);
     rscMgr.SetParity(ParityType.None);
     rscMgr.SetStopBits(StopBitsType.One);
     NSNotificationCenter.DefaultCenter.AddObserver("UIKeyboardDidShowNotification",(notification)=>{
         var value = notification.UserInfo["UIKeyboardFrameBeginUserInfoKey"] as NSValue;
         MainView.KeyBoardHeight = value.RectangleFValue.Height;
         MainView.LayoutSubviews();
     });
     NSNotificationCenter.DefaultCenter.AddObserver("UIKeyboardDidHideNotification",(notification)=>{
         var value = notification.UserInfo["UIKeyboardFrameBeginUserInfoKey"] as NSValue;
         Console.WriteLine(value.RectangleFValue);
         MainView.KeyBoardHeight = 0f;
         MainView.LayoutSubviews();
     });
 }