Пример #1
0
 void AttackMissView_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && MoveByDrag)
     {
         Win32APIUtils.DragMove(Handle);
     }
 }
Пример #2
0
 private void ControllerOnClickthroughChanged(bool fromView, bool clickthrough)
 {
     if (fromView)
     {
         return;
     }
     Win32APIUtils.SetWS_EX_TRANSPARENT(_handle, clickthrough);
     ClickBackground.Visibility = clickthrough ? Visibility.Hidden : Visibility.Visible;
 }
Пример #3
0
 private void Border_MouseDown(object sender, MouseButtonEventArgs e)
 {
     Win32APIUtils.DragMove(_handle);
 }
Пример #4
0
        protected void startGame()
        {
            try
            {
                if (useLoader == UseStartLoader.SoraApp)
                {
                    ProcessUtils.StartProcess(FileUtils.GetWinDir() + SORAAPP_FILENAME, codePage.Trim() + " " + this.bootFilename);
                }
                else if (useLoader == UseStartLoader.NTLEA)
                {
                    int iLCID = Convert.ToInt32(codePage.Trim(), 16);
                    ProcessUtils.StartProcess(NTLEA_PATH, String.Format("\"{0}\" C{1} L{2}", this.bootFilename, Win32APIUtils.GetLocaleCP(iLCID), iLCID));
                }
                else
                {
                    ProcessUtils.StartProcess(this.bootFilename, null);
                }
            }
            catch (FileNotFoundException e)
            {
                throw new ArgumentException(Resource.LoaderNotFound, e);
            }

            waitUtilTrue(ProcessUtils.ExistsProcess, this.executeFilename);
        }