//const Int32 COMBOBOX_HEIGHTCONST = 0X153;
        //[DllImport("user32.dll")]
        //private static extern int SendMessage(IntPtr hwnd, Int32 wMsg, Int32 wParam, Int32 lParam);
        //private void AdjustComboBoxHeight(ComboBox control, Int32 height)
        //{
        //    SendMessage(control.Handle, COMBOBOX_HEIGHTCONST, -1, height);
        //    control.Refresh();
        //}
        public FrmMain()
        {
            InitializeComponent();

            mapWidth = 752.4f;
            mapHeight = 789.3f;

            imageWidth = pictureBox1.Width;
            imageHeight = pictureBox1.Height;

            if (firstRun)
                Logger.WriteLine("First run");

            renderer = new Renderer(pictureBox1.CreateGraphics(), pictureBox1.Image);
            mapInputlayer = new InputLayer(renderer);
            mapInputlayer.PathCalculation += new InputLayer.PathCalculationEventHandler(mapInputlayer_PathCalculation);
            mapInputlayer.GetNodeName += new InputLayer.GetNodeNameEventHandler(mapInputlayer_GetNodeName);

            LoadPoints();
            LoadServers();

            imageToolTip.SetToolTip(pictureBox1, "");
            imageToolTip.ShowAlways = true;
        }
 public InputLayer(Renderer renderer)
 {
     this.renderer = renderer;
     renderer.GetNodeName += new Renderer.GetNodeNameEventHandler(renderer_GetNodeName);
 }