void AttackMissView_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left && MoveByDrag) { Win32APIUtils.DragMove(Handle); } }
private void ControllerOnClickthroughChanged(bool fromView, bool clickthrough) { if (fromView) { return; } Win32APIUtils.SetWS_EX_TRANSPARENT(_handle, clickthrough); ClickBackground.Visibility = clickthrough ? Visibility.Hidden : Visibility.Visible; }
private void Border_MouseDown(object sender, MouseButtonEventArgs e) { Win32APIUtils.DragMove(_handle); }
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); }