Exemplo n.º 1
0
        private void Init()
        {
            Title       = string.Empty;
            Instruction = string.Empty;
            Content     = null;

            CommonIcon = defaultIcon;
            CustomIcon = null;

            CommonButtons = 0;
            CustomButtons = null;
            DefaultButton = (int)CommonButton.OK;

            RadioButtons       = null;
            EnabledRadioButton = 0;

            VerificationText     = null;
            ExpandedInformation  = null;
            ExpandedControlText  = null;
            CollapsedControlText = null;

            Footer           = null;
            FooterCommonIcon = CommonIcon.None;
            FooterCustomIcon = null;

            Width = 0;

            config = new NativeMethods.TaskDialogConfig();
        }
Exemplo n.º 2
0
 /// <summary>Navigation message.</summary>
 /// <remarks>The config structure will be marshaled: must be correctly disposed after use.</remarks>
 public Message(NativeMethods.TaskDialogMessages msg, int w, NativeMethods.TaskDialogConfig config)
 {
     UnsafeHandle = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeMethods.TaskDialogConfig)));
     Marshal.StructureToPtr(config, UnsafeHandle, false);
     MessageType = msg;
     WParam      = new IntPtr(w);
     LParam      = UnsafeHandle;
     ContainsTaskDialogConfig = true;
 }
Exemplo n.º 3
0
        /// <summary>Navigation message.</summary>
        /// <remarks>The config structure will be marshaled: must be correctly disposed after use.</remarks>
        public Message(NativeMethods.TaskDialogMessages msg, int w, NativeMethods.TaskDialogConfig config)
        {
            MessageType = msg;
            wParam      = w;

            _unsafeHandle = Marshal.AllocHGlobal(Marshal.SizeOf(config));
            Marshal.StructureToPtr(config, _unsafeHandle, false);
            lParam = (int)_unsafeHandle;
        }
Exemplo n.º 4
0
 /// <summary>Navigation message.</summary>
 /// <remarks>The config structure will be marshaled: must be correctly disposed after use.</remarks>
 public Message(NativeMethods.TaskDialogMessages msg, int w, NativeMethods.TaskDialogConfig config)
 {
     UnsafeHandle = Marshal.AllocHGlobal(Marshal.SizeOf <NativeMethods.TaskDialogConfig>());
     Marshal.StructureToPtr(config, UnsafeHandle, false);
     MessageType = msg;
     WParam      = w;
     LParam      = UnsafeHandle.ToInt32();
     ContainsTaskDialogConfig = true;
 }
Exemplo n.º 5
0
        private void Init()
        {
            Title = defaultTitle;
            Instruction = defaultInstruction;
            Content = defaultContent;

            CommonIcon = defaultIcon;
            CustomIcon = null;

            CommonButtons = 0;
            CustomButtons = null;
            DefaultButton = (int)TaskDialogButton.OK;

            RadioButtons = null;
            EnabledRadioButton = 0;

            VerificationText = null;
            ExpandedInformation = null;
            ExpandedControlText = null;
            CollapsedControlText = null;

            Footer = null;
            FooterCommonIcon = TaskDialogIcon.None;
            FooterCustomIcon = null;

            Width = 0;

            config = new NativeMethods.TaskDialogConfig();
        }