protected virtual void OnIconButtonClicked(object sender, System.EventArgs e) { IconSelection iconSelection = new IconSelection(); Dialog dialog = new Dialog("Select Icon", this, DialogFlags.DestroyWithParent); dialog.Modal = true; dialog.Add(iconSelection); //dialog.AddButton("Close", ResponseType.Close); dialog.Run(); dialog.Destroy(); }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if (context != null && context.Instance != null && provider != null) { edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); var ctrl = context.Instance as IIconfont; if (edSvc != null) { using (var f = new IconSelection(ctrl.IconFontName)) { if (f.ShowDialog() == DialogResult.OK) { value = f.SelectKey; } } } } return(value); }
partial void SelectSelectedIcon(NSObject sender) { _iconSelection = IconSelection.SELECTED; LoadImageFromDropbox(); }
partial void SelectDefaultIcon(NSObject sender) { _iconSelection = IconSelection.DEFAULT; LoadImageFromDropbox(); }
protected virtual void OnIconButtonClicked (object sender, System.EventArgs e) { IconSelection iconSelection = new IconSelection(); Dialog dialog = new Dialog("Select Icon", this, DialogFlags.DestroyWithParent); dialog.Modal = true; dialog.Add(iconSelection); //dialog.AddButton("Close", ResponseType.Close); dialog.Run(); dialog.Destroy(); }