public HResult SetFooterIcon(NiTaskDialogIcon footerIcon) { try { _taskDialog.FooterIcon = TaskDialogUtil.EncodeIcon(footerIcon); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult UpdateFooterIcon(NiTaskDialogIcon icon) { try { _active.UpdateFooterIcon(TaskDialogUtil.EncodeIcon(icon)); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetFooterIcon(out NiTaskDialogIcon footerIcon) { footerIcon = 0; try { footerIcon = TaskDialogUtil.DecodeIcon(_taskDialog.FooterIcon); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public HResult GetMainIcon(out NiTaskDialogIcon mainIcon) { mainIcon = 0; try { mainIcon = TaskDialogUtil.DecodeIcon(_taskDialog.MainIcon); return(HResult.OK); } catch (Exception ex) { return(ErrorUtil.GetHResult(ex)); } }
public static TaskDialogIcon EncodeIcon(NiTaskDialogIcon value) { switch (value) { case NiTaskDialogIcon.None: return(TaskDialogIcon.None); case NiTaskDialogIcon.Warning: return(TaskDialogIcon.Warning); case NiTaskDialogIcon.Error: return(TaskDialogIcon.Error); case NiTaskDialogIcon.Information: return(TaskDialogIcon.Information); case NiTaskDialogIcon.Shield: return(TaskDialogIcon.Shield); default: throw new ArgumentOutOfRangeException("value"); } }
public NiTaskDialogBuilder MainIcon(NiTaskDialogIcon mainIcon) { _mainIcon = mainIcon; return this; }
public HResult SetMainIcon(NiTaskDialogIcon mainIcon) { try { _taskDialog.MainIcon = TaskDialogUtil.EncodeIcon(mainIcon); return HResult.OK; } catch (Exception ex) { return ErrorUtil.GetHResult(ex); } }
public HResult SetFooterIcon(NiTaskDialogIcon footerIcon) { try { _taskDialog.FooterIcon = TaskDialogUtil.EncodeIcon(footerIcon); return HResult.OK; } catch (Exception ex) { return ErrorUtil.GetHResult(ex); } }
public HResult GetMainIcon(out NiTaskDialogIcon mainIcon) { mainIcon = 0; try { mainIcon = TaskDialogUtil.DecodeIcon(_taskDialog.MainIcon); return HResult.OK; } catch (Exception ex) { return ErrorUtil.GetHResult(ex); } }
public HResult GetFooterIcon(out NiTaskDialogIcon footerIcon) { footerIcon = 0; try { footerIcon = TaskDialogUtil.DecodeIcon(_taskDialog.FooterIcon); return HResult.OK; } catch (Exception ex) { return ErrorUtil.GetHResult(ex); } }
public HResult UpdateMainIcon(NiTaskDialogIcon icon) { try { _active.UpdateMainIcon(TaskDialogUtil.EncodeIcon(icon)); return HResult.OK; } catch (Exception ex) { return ErrorUtil.GetHResult(ex); } }
public static TaskDialogIcon EncodeIcon(NiTaskDialogIcon value) { switch (value) { case NiTaskDialogIcon.None: return TaskDialogIcon.None; case NiTaskDialogIcon.Warning: return TaskDialogIcon.Warning; case NiTaskDialogIcon.Error: return TaskDialogIcon.Error; case NiTaskDialogIcon.Information: return TaskDialogIcon.Information; case NiTaskDialogIcon.Shield: return TaskDialogIcon.Shield; default: throw new ArgumentOutOfRangeException("value"); } }
public NiTaskDialogBuilder MainIcon(NiTaskDialogIcon mainIcon) { _mainIcon = mainIcon; return(this); }