Exemplo n.º 1
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();
        }
		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();
		}
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;
        }