Esempio n. 1
0
        public MapPage(string layoutFile)
        {
            var          assembly = IntrospectionExtensions.GetTypeInfo(typeof(MapPage)).Assembly;
            string       path     = $"{ImageLoader.resourcePrefix}Layouts.{layoutFile}";
            Stream       stream   = assembly.GetManifestResourceStream(path);
            StreamReader r        = new StreamReader(stream);

            string contents = r.ReadToEnd();

            r.Close();
            stream.Close();

            LoadData(contents);

            self = this;

            InitializeComponent();
            LoadComponentReferences();

            MapData();
        }
Esempio n. 2
0
 private void CheckBox_CheckedChanged(object sender, CheckedChangedEventArgs e)
 {
     Object.Visible = e.Value;
     MapPage.UpdateMapImage();
 }