Example #1
0
        public RadarWindow(Core core)
        {
            InitializeComponent();

            CurrentSettings = LoadUserRadarData();
            rTabs           = new ObservableCollection <RadarTab>(CurrentSettings.Tabs);

            //RadarSettingsTabs.ItemsSource =  rTabs;

            this.ArcheBuddyCore     = core;
            this.AllowsTransparency = true;

            Plotter = new RadarPlotter(this);

            //Log("Radar Loaded");
            worker.WorkerSupportsCancellation = true;
        }
Example #2
0
        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            if (worker != null)
            {
                worker.CancelAsync();
            }

            Plotter.DisposeAll();

            //ArcheBuddyCore.Log("Dictionary has " + Plotter.VectorCache.Count + " objects");
            //ArcheBuddyCore.Log("Canvas has " + RadarCanvas.Children.Count + " children");
            Plotter = null;

            base.OnClosing(e);


            //when the radar window is closed, save our settings
            //string json = JsonConvert.SerializeObject(CurrentSettings);

            //mCore.Properties.Settings.Default.RadarSettings = json;
        }
Example #3
0
 public HouseScanner(RadarPlotter plotter, RadarWindow radar)
 {
     radarPlotter   = plotter;
     radarWindow    = radar;
     ArcheBuddyCore = radar.ArcheBuddyCore;
 }