1
O ničom / Re: Koho z fora som dnes videl??!!
« on: 11.02.2015, 18:02:56 »
ja som zase videl m@teja a devianta aka nahoda
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
(?<action>M)(?<param>[A-Z][0-9])|(?<action>X)
GroupsCollection groups = regex.Match(inputToTest).Groups;
if (groups["action"].Value == "M") { DoMove(groups["param"].Value); }
else if (groups["action"].Value == "X") { DoExit(); }
Ako nacitam nieco z klavesnice a reagujem nato tak bez toho aby som stlacil enter?? ktore metody treba pouzit??
Console.ReadKey();
if (groups["action"].Value == "X") {
PerformExit();
}
else if (groups["action"].Value == "N") {
PerformNew();
}
else ...