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(); }
private void CheckBox_CheckedChanged(object sender, CheckedChangedEventArgs e) { Object.Visible = e.Value; MapPage.UpdateMapImage(); }