//----------------------------------------------------------------------------------------- // Init //----------------------------------------------------------------------------------------- public HeatMapPanel(HeatMapViewPlugin plugin) { InitializeComponent(); Plugin = plugin; Plugin.Control.PropertyChanged += PropertyChangedEventHandler; VisibleRectangle = GetVisibleRectangle(); }
public SettingsPanel(HeatMapViewPlugin plugin) { InitializeComponent(); Plugin = plugin; ListBox.DataSource = Plugin.Settings.HeatMaps; ListBox.SelectedIndex = ListBox.FindString(Plugin.Settings.SelectedHeatMap); if (ListBox.SelectedIndex == -1) { ListBox.SelectedIndex = Plugin.Settings.HeatMaps.Count - 1; } EnabledCheckBox.Checked = Plugin.Settings.Enabled; }