Esempio n. 1
0
            public HResult Hide()
            {
                try
                {
                    VerifyNotDisposed();

                    _owner.IsHidden = true;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 2
0
        public HResult GetRight(out IStream stream)
        {
            stream = null;

            try
            {
                stream = Control.GetRight();

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 3
0
        public HResult CreateInstance(out INiWaitDialog result)
        {
            result = null;

            try
            {
                result = new NiWaitDialog(this, _synchronizationContext);

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 4
0
        public HResult GetSize(out int length)
        {
            length = 0;

            try
            {
                length = Document.TextLength;

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 5
0
                public HResult GetAllButtons(out INiCommandBarButton[] buttons)
                {
                    buttons = null;

                    try
                    {
                        buttons = _keyboardMappingManager._commandManager._objects.Values.OfType <INiCommandBarButton>().ToArray();

                        return(HResult.OK);
                    }
                    catch (Exception ex)
                    {
                        return(ErrorUtil.GetHResult(ex));
                    }
                }
Esempio n. 6
0
            public HResult GetHandle(out IntPtr handle)
            {
                handle = IntPtr.Zero;

                try
                {
                    handle = _active.Handle;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 7
0
        public HResult CreateJob(INiJobHandler handler, out INiJob job)
        {
            job = null;

            try
            {
                job = new NiJob(this, handler);

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 8
0
            public HResult GetExpandedInformation(out string expandedInformation)
            {
                expandedInformation = null;

                try
                {
                    expandedInformation = _taskDialog.ExpandedInformation;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 9
0
            public HResult GetExpandedControlText(out string expandedControlText)
            {
                expandedControlText = null;

                try
                {
                    expandedControlText = _taskDialog.ExpandedControlText;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 10
0
            public HResult GetContent(out string content)
            {
                content = null;

                try
                {
                    content = _taskDialog.Content;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 11
0
            public HResult GetVerificationText(out string verificationText)
            {
                verificationText = null;

                try
                {
                    verificationText = _taskDialog.VerificationText;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 12
0
            public HResult GetMainInstruction(out string mainInstruction)
            {
                mainInstruction = null;

                try
                {
                    mainInstruction = _taskDialog.MainInstruction;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 13
0
            public HResult GetWindowTitle(out string windowTitle)
            {
                windowTitle = null;

                try
                {
                    windowTitle = _taskDialog.WindowTitle;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 14
0
        public HResult CreateTaskDialog(out INiTaskDialog taskDialog)
        {
            taskDialog = null;

            try
            {
                taskDialog = new NiTaskDialog(this);

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 15
0
            public HResult GetDefaultRadioButton(out int id)
            {
                id = 0;

                try
                {
                    id = _taskDialog.DefaultRadioButton;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 16
0
            public HResult GetCollapsedControlText(out string collapsedControlText)
            {
                collapsedControlText = null;

                try
                {
                    collapsedControlText = _taskDialog.CollapsedControlText;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 17
0
            public HResult GetWidth(out int width)
            {
                width = 0;

                try
                {
                    width = (int)_taskDialog.Width;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 18
0
            public HResult GetFooter(out string footer)
            {
                footer = null;

                try
                {
                    footer = _taskDialog.Footer;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 19
0
        internal HResult GetDocumentWindowIterator(out INiIterator <INiWindowFrame> iterator)
        {
            iterator = null;

            try
            {
                iterator = new NiDocumentWindowIterator(((IEnumerable <IDockContent>)_dockPanel.Documents.ToArray()).GetEnumerator());

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 20
0
            public HResult GetCommonButtons(out NiTaskDialogCommonButtons commonButtons)
            {
                commonButtons = 0;

                try
                {
                    commonButtons = TaskDialogUtil.DecodeCommonButtons(_taskDialog.CommonButtons);

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 21
0
        public HResult GetLineCount(out int lineCount)
        {
            lineCount = 0;

            try
            {
                lineCount = Document.TotalNumberOfLines;

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 22
0
            public HResult GetMainIcon(out NiTaskDialogIcon mainIcon)
            {
                mainIcon = 0;

                try
                {
                    mainIcon = TaskDialogUtil.DecodeIcon(_taskDialog.MainIcon);

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 23
0
        public HResult LoadKeyboardMappings(out INiKeyboardMappings mappings)
        {
            mappings = null;

            try
            {
                mappings = _keyboardMappingManager.Load();

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 24
0
            public HResult GetMainIcon(out IResource mainIcon)
            {
                mainIcon = null;

                try
                {
                    mainIcon = _mainIcon;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 25
0
        public HResult GetMode(out NiDiffViewerMode mode)
        {
            mode = 0;

            try
            {
                mode = Control.Mode;

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 26
0
            public HResult GetFooterIcon(out NiTaskDialogIcon footerIcon)
            {
                footerIcon = 0;

                try
                {
                    footerIcon = TaskDialogUtil.DecodeIcon(_taskDialog.FooterIcon);

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 27
0
        public HResult GetReadOnly(out bool readOnly)
        {
            readOnly = false;

            try
            {
                readOnly = Control.ReadOnly;

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 28
0
            public HResult GetFooterIcon(out IResource footerIcon)
            {
                footerIcon = null;

                try
                {
                    footerIcon = _footerIcon;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }
Esempio n. 29
0
        public HResult GetOtherArguments(out string[] arguments)
        {
            arguments = null;

            try
            {
                arguments = _remainingArguments.ToArray();

                return(HResult.OK);
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }
Esempio n. 30
0
            public HResult SetCaption(string caption)
            {
                try
                {
                    VerifyNotDisposed();

                    _owner.Text = _owner.TabText = caption;

                    return(HResult.OK);
                }
                catch (Exception ex)
                {
                    return(ErrorUtil.GetHResult(ex));
                }
            }