void uiPreset_CloseEvent(object sender, EventArgs e)
        {
            AddPreset uiPreset = sender as AddPreset;

            this.UIMapContent.Children.Remove(uiPreset);
            this.DrawMap();
        }
 void uiCamera_AddPresetEvent(object sender, Code.Camera e)
 {
     if (e != null)
     {
         AddPreset uiPreset = new AddPreset();
         uiPreset.Camera = e;
         uiPreset.Width  = 1366;
         uiPreset.Height = 768;
         uiPreset.setLeft(0);
         uiPreset.setTop(0);
         uiPreset.CloseEvent += uiPreset_CloseEvent;
         this.UIMapContent.Children.Add(uiPreset);
     }
 }