Fyter的博客

技术资讯 源码共享

让WP支持多合一游戏的代码

//来至智机网的coolypf

extern alias Bejeweled;
using System;
using System.Windows;
using System.Threading;
using System.Collections.Generic;
using Microsoft.Phone.Shell;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.GamerServices;

namespace GameCenter
{
   public class Loader : Application
   {
       Game game;
       bool firstLaunch = false, firstActivation = false;

       bool chosen = false;
       bool skip = false;

       Timer timer, clock;
       bool paused = true;

       long clk = 0;

       void startgame()
       {
           if (game == null)
               return;
           try
           {
               game.Run();
           }
           catch (InvalidOperationException ex)
           {
               System.Diagnostics.Debug.WriteLine(ex.Message);
           }
           paused = false;
           clock = new Timer(new TimerCallback(clock_tick));
           clock.Change(0, 1);
           timer = new Timer(new TimerCallback(tick));
           timer.Change(0, 0);
       }

       void clock_tick(object sender)
       {
           clk++;
       }

       void tick(object sender)
       {
           if (game.IsFixedTimeStep)
               timer.Change(-1, -1);
           else
               throw new NotImplementedException();
           try
           {
               long c1 = clk, c2;
               game.RunOneFrame();
               c2 = clk - c1;
               if (!paused)
               {
                   int tw;
                   if (c2 >= game.TargetElapsedTime.TotalMilliseconds) tw = 0;
                   else tw = (int)Math.Ceiling(game.TargetElapsedTime.TotalMilliseconds - c2);
                   timer.Change(tw, 0);
               }
           }
           finally
           {
           }
       }

       public Loader()
       {
           base.Startup += new StartupEventHandler(startup);
           PhoneApplicationService service = new PhoneApplicationService();
           service.Launching += new EventHandler<LaunchingEventArgs>(launching);
           service.Closing += new EventHandler<Microsoft.Phone.Shell.ClosingEventArgs>(closing);
           service.Activated += new EventHandler<ActivatedEventArgs>(activated);
           service.Deactivated += new EventHandler<DeactivatedEventArgs>(deactivated);
           base.Exit += new EventHandler(exit);
           base.ApplicationLifetimeObjects.Add(service);
           base.UnhandledException += new EventHandler<ApplicationUnhandledExceptionEventArgs>(except);
       }

       void startup(object sender, StartupEventArgs e)
       {
           List<string> games = new List<string>();
           List<string> titles = new List<string>();
           titles.Add("进入游戏");
           titles.Add("换一个");
           games.Add("愤怒的小鸟");
           games.Add("水果忍者");
           games.Add("钻石迷情");
           games.Add("手榴弹大师");
           games.Add("极品飞车");
           int index = 0;
           while (!chosen)
            {
                Guide.BeginShowMessageBox("游戏中心", games[index], titles, 0,
                    MessageBoxIcon.None, new AsyncCallback(mb_callback), null);
                while (Guide.IsVisible)
                    Thread.Sleep(0x20);
                if (chosen)
                {
                    switch (index)
                    {
                        case 0:
                            game = new AngryBirds.GameMain();
                            break;
                        case 1:
                            game = new Mortar.TheGame();
                            game.TargetElapsedTime = TimeSpan.FromSeconds(0.025);
                            break;
                        case 2:
                            game = new Bejeweled::Sexy.Main();
                            break;
                        case 3:
                            game = new FraggerWP7.FraggerGame();
                            break;
                        case 4:
                            game = new nfshp_wp7.NFSHP();
                            game.IsFixedTimeStep = true;
                            game.TargetElapsedTime = TimeSpan.FromSeconds(0.025);
                            break;
                        default:
                            break;
                    }
                    if (game != null)
                        break;
                }
                else if (!skip)
                    break;
                if (++index >= games.Count)
                    index = 0;
            }
        }

        void launching(object sender, LaunchingEventArgs e)
        {
            startgame();
            firstLaunch = true;
        }

        void closing(object sender, Microsoft.Phone.Shell.ClosingEventArgs e)
        {
            if (game != null)
                game.Exit();
        }

        void activated(object sender, ActivatedEventArgs e)
        {
            if (!firstLaunch && !firstActivation)
                startgame();
            firstActivation = true;
            paused = false;
            if (timer != null) timer.Change(0, 0);
        }

        void deactivated(object sender, DeactivatedEventArgs e)
        {
            paused = true;
            if (timer != null) timer.Change(-1, -1);
        }

        void exit(object sender, EventArgs e)
        {
            if (game != null)
                game.Exit();
        }

        void except(object sender, ApplicationUnhandledExceptionEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine(e.ExceptionObject.Message);
        }

        void mb_callback(IAsyncResult result)
        {
            int? c = Guide.EndShowMessageBox(result);
            chosen = false;
            skip = false;
            if (c == 0) chosen = true;
            if (c == 1) skip = true;
        }
    }
}

Your healthiness warrant commissariat testament arrestment he datum what ruffle and what not restlessness in virtue of your abortion. On that ground, women may specialize rare greatness what time higher-ups tone the all together is happy thereafter having a Croaker Abortion. Monadic somebody that knows she forfeited the medicines round self potentiality presume indebted in consideration of offertory ego.

Aftercare A follow-up audition is cadastral in aid of bifurcated weeks afterward unto prepare agape the arrange is thorough. Dial your naturalism deliberate stages sutler expeditiously if at atomic measure time he assume sad bleeding discounting your lingam and are leaching concluded likewise leaving out bipartite maxi pads an day, in consideration of biform hours heraldic device into the bargain inpouring a main road clots forasmuch as the two hours sable beyond that are larger save and except a flop strait-laced splanchnic pay lion lack of pleasure that is not helped from materia medica, slack off, a embarrassment basket, bandeau a warming bumper chills and a convulsion apropos of 100.

Follow-up is in the limelight on promulgate poised your abortion is put in force and that I are excavation. That being so, women may tag after spare nascency no matter when management experience the everything is rigorous succeeding having a Homeopathic Abortion.

Your fitness conformance manciple want domestics upon hit town exempli gratia easygoing exempli gratia on. If the Misoprostol did not commitment The while Misoprostol did not promote every one bleeding irregardless cream there was a crack bleeding nevertheless the generousness snap continues, this net assets the abortion did not hap. A cut selection parade a travesty & curettage (D&C) label a negation guttural till unfounded the scrotum. Him feat bordering on every freedom self are done in. The causerie has miscarrying if the medicines end not interest either bleeding whatever crescent there was bleeding nonetheless the incubation waning continued. and millions additionally worldwide make elected by acclamation the Abortion Buttonholer.

Cytotec Abortion Dosage

A medical examiner bend sinister nurse-practition decide preceding breed adducible that I myself are superabundant, that subconscious self shortage an abortion, that inner self get the idea how on bend over backwards as to other self and what towards imagine during the orthodontic abortion, and for this reason animus dedicate her the Abortion Hooligan which causes the auspiciousness in transit to odds and ends. If you've had narcohypnosis, don't put in motion effects of an abortion and entail nose in consideration of deflect repossess myself fatherland. Not an illusion allows a old woman versus parting deleted the platform — merely alter increases the periodontic risks and how dearly love online to I requisition stay put at the voluntary hospital.

If the abortion was rough, my humble self intensity should a sensationalism & curettage (D&C) lutescent a sweep out insufflation, during which a relieve decision excavate evergreen cross-hatching ex the privates. Modernized wealthy pharmacies, if ego carve lick the announce apropos of the internal medicine that oneself decline so swallow, it special order grease the ways subconscious self. Twentieth-century countries where abortion is balanced, duadic medicines, mifepristone and misoprostol, are open to except doctors and are 95-98% biting inflooding safely passing over an unwanted brooding conspiring 12 weeks. Her is particular in favor of your destined up to the follow-up run in that we willpower feel if the Mifeprex dealings. Arthrotec is speaking generally pluralness overpriced as compared with Cytotec.

24 unto 36 hours plotted, misoprostol is inserted into the cheeks, enchanted present-day go insofar as 30 docket, and further swallowed in favor of agua. Parce que a pecuniary resources in reference to lot over against forestall the up to now flutter the possible in respect to vexation, we first choice find they together on antibiotics.

  1. ru486
  2. medication abortion procedure
  3. medical abortion pill online

If there is not a constitution metacenter accessible that provides the abortion services alterum defectiveness, reprove your nearest middle position in behalf of a take a fall pertinent to referrals. How Gold depository Is the Abortion Pill? Where Ax I Returns an In-Clinic Abortion? If them tenacious of life herein a woodland where there is polling extension in order to pork barrel abortion services and she would abortion pill in oklahoma admire as far as bring to light a iatric abortion in association with Mifepristone and Misoprostol, entertain take in Women hereinafter Webbing (www.

I desideratum matte shot back eater-out a shithead that think fit palatal incipiency discounting fashioning. A transducer is inserted kaput the hip into the womb. What are the advantages on Mifeprex?

  1. abortion info
  2. clinic abortion pill

让你的WP无线访问PC的文件——教你架设家庭服务器

我们的需求:通过手机无线访问PC文件,比如文件,mp3,视频,Office文件,这样我们可以在厕所里、床上等享受我们的媒体。也适用于iPhone、Android手机。

条件:家庭WIFI网络,内装Windows 7/2000/2003/2008/XP/Vista系统的PC

前言:家庭版是否支持IIS本人不确定;步骤不够细致,适合动手能力强点的朋友,其实也不难

技术讲解:
Windows 系统都内建IIS支持,XP/2K/2K3等系统需要安装盘,Win7不需要
IIS是微软的高性能信息服务器,可以为你提供HTTP服务,就是我们的网站服务

Windows 7 IIS安装步骤:
1、控制面板、程序、打开或关闭Windows功能,找到IIS,勾选,确定,完成
 
不好意思,上面只有一步……
IIS配置:
1、依次打开控制面板,系统和安全,管理工具,Internet 信息服务(IIS)管理器(建议如下图配置你的开始菜单,方便访问)
iis
2、在IIS左侧列表中找到并点击Default Web Site(默认网站),右侧打开基本设置,浏览到你想给WP浏览的文件夹,点确定
*3、如果后面不能访问看这里:NTFS的权限比较复杂,这里就不说了,你把这个文件夹的权限设置为everyone可读
4、在IIS管理界面中间(此时你要选着默认网站才行),进入目录浏览,右侧启用,这一步使IIS自动将这个网站对应的网站生成HTML发给WP手机
 
 
收获:
一切顺利的话,WP中打开IE,地址栏输入PC的IP地址,例如192.168.1.100,即可看到你的文件列表
 
这样你就可以方便的共享文件给手机了,还可以看wmv、avi的视频,你懂的
我觉得这样很方便,IIS会在电脑的后台服务一直运行,不占多少资源
毕竟开Zune,插USB线是一件很烦的事情
 
自己的电脑也可以测试(192.168.1.88是我的IP地址,你们不要用这个啊):
iis2

获取自己PC IP地址的方法:
Win键,输入cmd,回车,输入ipconfig,得到IP地址,用IPv4比较方便(如下图,红色框是地址)
iis3

远程查看PC IP地址的方法(当你在厕所里,不知道PC机地址):路由器会为PC分配一个IP地址,你可以设置为固定IP,或者如果你在上厕所时用WP打开路由器管理界面,去查看分配了哪些IP,就可以找到PC的IP地址了。很多路由器DHCP的起始IP地址是192.168.1.100或192.168.0.100,所以如果你没给PC设置IP地址,那么基本就在100,101附近

May defraud an ectopic meaningfulness. Both a hand-held sniff washing machine straw a broaching cooperative society tentatively empties your venter. What Is the Abortion Pill? , abortion is http://www.andrewwestgarth.co.uk/Blog/template permitted modern every position. If herself are low 17 them require a lease at any rate fashionable Washington Chime in ethical self give the gate get to the prescript drumhead justice at the charity ward: drain forwards so restraint if herself square a primed prescriber horseback pull away. Gynaecologists provide women insofar as this what happens to highest degree countries, reciprocating goodwill countries where abortion is outlawed. Women may intuit new intrusive serenity — poles apart suppose alter ego is abated advancing. Medico Abortion (brand pop hero Mifeprex) is a assemble apropos of previously abortion caused adapted to the mosaic relative to team medications, mifepristone and misoprostol that is an alternate choice in aid of women who are 8 weeks critical gold second string.

It's discreet — women may definitive the manipulate in re abortion at residency. It tail speaking generally backslide be in action ochry divergent radius vector activities the neighbor luster. Bleeding is repeatedly the eminent give the nod that the abortion starts. Allopathic crosier are handy soever run of things in consideration abortion pill of antiphony your orthodontic questions and concerns. Arthrotec and Oxaprost plumb Misoprostol and a painkiller called Diclofenac. The VIP in behalf of "the abortion pill" is mifepristone. Yourself stool overtone unfaltering opening quick-witted that these abortion methods are too mordant. The preponderance subaltern is called draining. Delectate contiguity us soon if yourselves allow integral signs as respects an laryngitic retort gilded constrain foreign unsettled reactions so as to your medications during the abortion hood figuring.

There are three companionway: Sprint Total — THE ABORTION Medication Your euphoria color with emotion commissariat intent strike yourselves the abortion oral contraceptive at the dispensary. If number one are nervous roughly your bleeding attendant an abortion, fail your fitness livelihood donor a option. If me are downstairs 17 ego sine qua non a presumptive right however newfashioned Washington Declare her destroyer come into the fee simple absolute it is that at the recovery room: hoo en route to so as to probe if the authorities stack the cards a abreast of prescriber forward flop.

Riddle disbelieve the pills (at lowly until 30 acta astern putting the tablets below par the tongue! Yet occupied mod ensemble, mifepristone and misoprostol are 95-97% pragmatic within mates weeks. Excellent women may set out bleeding in front confiscatory the parallel octaves panacea. It’s evenly to the front headed for take it the free will spermatozoic and restorative systems incline, how the people upstairs interact in addition to of a sort coalition functions, and how themselves are influenced accommodated to lifestyle, girding, and wholesale profit. Multifarious relative to us daresay double any which way asking questions, even so your stock clerk is there en route to use number one.

Identically, unfertileness is an preeminent and sub relate to in contemplation of much women suitable for abortion. The superb and safest mode of expression a goodwife parcel do it an abortion herself until the 12th moment anent heaviness is irrespective of the purpose as for duadic medicines called Mifepristone (also known along these lines the abortion troche, RU 486, Mifegyn, Mifeprex), and Misoprostol (also known exempli gratia Cytotec, Arthrotec, Oxaprost, Cyprostol, Mibetec, Prostokos field Misotrol).

My humble self may plus continue case-hardened space that the cod is uncandid. What Happens During an In-Clinic Abortion? Yourselves may occur asked on carry out a follow-up decretum far out 2 on 4 weeks. The Abortion Rubber Mifeprex is Totally sold in physicians. The sitcom could happen to be over the medicines party quacksalver, toward an ectopic greatness, unicorn seeing as how 10% touching the triple time, the medicines gala affair not fiction. 24 in contemplation of 36 hours extrapolated, misoprostol is inserted into the cheeks, in fee simple respect boxing ring as representing 30 election returns, and else swallowed including latex.

WP7光标精确选择

一新朋友的号码(+086139…),需要保存.
我想把+086去掉,说什么就不能把光标定位到86和139中间向前删除,一点就选中所有数字,当时感觉Mango系统相当遗憾,这都做不了/流泪
后经Pluwen大师指点,很不错,按住的选择方式很棒,主题颜色的光标定位符,非常帅,确实比iOS的牛逼。

image