Пример #1
0
 /// <summary>
 /// Initializes a new instance of the TaskDialogInfo structure.
 /// </summary>
 /// <param name="title">Title of dialog.</param>
 /// <param name="taskDialogIcon">Task-dialog icon</param>
 /// <param name="header">Header text.</param>
 /// <param name="text">Dialog main/content text.</param>
 /// <param name="dialogButtons">Dialog buttons displayed.</param>
 /// <param name="dialogColor">Dialog background color.</param>
 /// <param name="radioButtons">Radio Button Commands</param>
 /// <param name="buttons">Button commands.</param>
 /// <param name="checkBoxCommand">Check-box command.</param>
 /// <param name="footerText">Footer text</param>
 /// <param name="footerImage">Footer image.</param>
 /// <param name="topMost">Indicates whether TaskDialog is top most.</param>
 public TaskDialogInfo(string title, eTaskDialogIcon taskDialogIcon, string header, string text, eTaskDialogButton dialogButtons, eTaskDialogBackgroundColor dialogColor, Command[] radioButtons, Command[] buttons, Command checkBoxCommand, string footerText, Image footerImage, bool topMost)
 {
     _Title = title;
     _Header = header;
     _Text = text;
     _DialogButtons = dialogButtons;
     _DialogColor = dialogColor;
     _RadioButtons = radioButtons;
     _Buttons = buttons;
     _FooterText = footerText;
     _CheckBoxCommand = checkBoxCommand;
     _TaskDialogIcon = taskDialogIcon;
     _FooterImage = footerImage;
     _TopMost = topMost;
     _DefaultButton = eTaskDialogButton.Ok;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the TaskDialogInfo structure.
 /// </summary>
 /// <param name="title">Title of dialog.</param>
 /// <param name="taskDialogIcon">Task-dialog icon</param>
 /// <param name="header">Header text.</param>
 /// <param name="text">Dialog main/content text.</param>
 /// <param name="dialogButtons">Dialog buttons displayed.</param>
 public TaskDialogInfo(string title, eTaskDialogIcon taskDialogIcon, string header, string text, eTaskDialogButton dialogButtons, eTaskDialogButton defaultButton)
 {
     _Title = title;
     _Header = header;
     _Text = text;
     _DialogButtons = dialogButtons;
     _DialogColor = eTaskDialogBackgroundColor.Default;
     _RadioButtons = null;
     _Buttons = null;
     _FooterText = null;
     _CheckBoxCommand = null;
     _TaskDialogIcon = taskDialogIcon;
     _FooterImage = null;
     _TopMost = false;
     _DefaultButton = defaultButton;
 }
Пример #3
0
 internal static Image GetImage(eTaskDialogIcon icon)
 {
     if (icon == eTaskDialogIcon.None) return null;
     return BarFunctions.LoadBitmap("SystemImages.Task" + icon.ToString() + ".png");
 }
Пример #4
-1
 /// <summary>
 /// Displays TaskDialog message.
 /// </summary>
 /// <param name="dialogTitle">Title of the window.</param>
 /// <param name="dialogIcon">Icon displayed on dialog.</param>
 /// <param name="dialogHeader">Task dialog header.</param>
 /// <param name="dialogText">Task dialog text.</param>
 /// <param name="dialogButtons">Displayed buttons.</param>
 /// <param name="dialogColor">Specifies the predefined color for the dialog.</param>
 /// <returns>Result from task-dialog.</returns>
 public static eTaskDialogResult Show(string dialogTitle, eTaskDialogIcon dialogIcon, string dialogHeader, string dialogText, eTaskDialogButton dialogButtons, eTaskDialogBackgroundColor dialogColor)
 {
     TaskDialogInfo info = new TaskDialogInfo(dialogTitle, dialogIcon, dialogHeader, dialogText, dialogButtons, dialogColor);
     return Show(info);
 }