Esempio n. 1
0
        public SUIFileException(string FileName, string Message, FileOperationType t, Exception e) : base(Message, e)
        {
            filePath = SUIUtil.getFilePathFromFileFullPath(FileName);

            if (filePath == null)
            {
                filePath = unknown;
                fileName = unknown;
            }
            else
            {
                fileName = SUIUtil.getFilePathFromFileFullPath(FileName);
                if (fileName == null)
                {
                    fileName = unknown;
                }
            }
            operation = t;
        }
Esempio n. 2
0
 public void Select(int index)
 {
     if (index < 0 || index >= DropdownListTextCount)
     {
         throw new SUIException("Index is out of range!");
     }
     if (this.SelectedIndex != index)
     {
         IntPtr wParam = SUIUtil.MakeWParam(this.ControlID, 3);
         int    num3   = SUIWinAPIs.PostMessage(this.Parent.WindowHandle, 0x111, wParam, this.WindowHandle);
         wParam = SUIUtil.MakeWParam(this.ControlID, 7);
         num3   = SUIWinAPIs.PostMessage(this.Parent.WindowHandle, 0x111, wParam, this.WindowHandle);
         wParam = new IntPtr(index);
         SUIWinAPIs.SendMessage(this.WindowHandle, 0x14e, wParam, IntPtr.Zero);
         wParam = SUIUtil.MakeWParam(this.ControlID, 1);
         num3   = SUIWinAPIs.PostMessage(this.Parent.WindowHandle, 0x111, wParam, this.WindowHandle);
         wParam = SUIUtil.MakeWParam(this.ControlID, 9);
         num3   = SUIWinAPIs.PostMessage(this.Parent.WindowHandle, 0x111, wParam, this.WindowHandle);
         wParam = SUIUtil.MakeWParam(this.ControlID, 8);
         num3   = SUIWinAPIs.PostMessage(this.Parent.WindowHandle, 0x111, wParam, this.WindowHandle);
     }
 }
Esempio n. 3
0
        private void CommitSelectionChange()
        {
            IntPtr wParam = SUIUtil.MakeWParam(ControlID, SUIMessage.CBN_SELCHANGE);

            SUIWinAPIs.SendMessage(Parent.WindowHandle, SUIMessage.WM_COMMAND, wParam, WindowHandle);
        }