private void btnOK_Click(object sender, RoutedEventArgs e) { btnCancel.IsEnabled = false; btnOK.IsEnabled = false; lblStatus.Content = "Generating points..."; this.Cursor = Cursors.Wait; var user = PluginManager.Instance.User; Config.SetUser <int>(user, "PointSetOptionWindow.PreviousPointSize", shapeOptions.Size); Config.SetUser(user, "PointSetOptionWindow.PreviousColor", shapeOptions.Color); Config.SetUser(user, "PointSetOptionWindow.PreviousShape", shapeOptions.Shape); JobExecutor.QueueJob(() => { if (Generator != null) { Points = Generator(); this.InvokeIfRequired(() => { Points.PointColor = shapeOptions.Color; Points.PointShape = shapeOptions.Shape; Points.Size = shapeOptions.Size; Points.DrawOutline = shapeOptions.DrawOutline; }); } this.InvokeIfRequired(() => { lblStatus.Content = ""; this.DialogResult = true; this.Close(); this.Cursor = Cursors.Arrow; }); }); }
public static Image GetSymbolForPointSet(MapPointSet set) { return(GetSymbol(set.PointShape, set.Size, set.PointColor, set.DrawOutline, set.OutlineColor)); }