Game time "iSlash" an iPhone game for Ninjas :) A perfect game to tune up your ninja senses. Your finger is your weapon. Swipe to slash your way through different levels.
Master your ninja skills while sitting on a couch. Other Detail
by Ilyax on 03. September 2010 in Actual
Game time "iSlash" an iPhone game for Ninjas :) A perfect game to tune up your ninja senses. Your finger is your weapon. Swipe to slash your way through different levels.
Master your ninja skills while sitting on a couch. Other Detail
by Ilyax on 25. August 2010 in Development
WPF project is dynamic startup instance. What does this mean ?
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Test());
}
classic windows form startup function
If your project is WPF application not have program.cs , WPF have (App.xaml and App.xaml.cs)
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="BlogTestApplication.App"
StartupUri="Test.xaml">
<Application.Resources>
<!-- Resources scoped at the Application level should be defined here. -->
</Application.Resources>
</Application>
standart App.xmal source
look StartupUri="Test.xaml" is your WPF application startup instance WPF is dynamic generate main method if you want can change
StartupUri="Test2.xaml">
Other Method
namespace BlogTestApplication
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}// class end
}
App.xaml.cs standart class structure
Add new method App.xaml.cs
namespace BlogTestApplication
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
void Main(object sender, StartupEventArgs e)
{
Test ttWin = new Test();
ttWin.Show();
}
}// class end
}
change App.xmal attribute
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="BlogTestApplication.App"
Startup="Main">
<Application.Resources>
<!-- Resources scoped at the Application level should be defined here. -->
</Application.Resources>
</Application>
set main method startup attribute
by Ilyax on 22. August 2010 in Development
Add your project Global.asax
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
protected void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("Default",
"index",
"~/default.aspx");
routes.MapPageRoute("Signup",
"Signup",
"~/signup.aspx");
}
by Ilyax on 23. July 2010 in Development
Page Code
$("#btnSend").click(function () {
$.ajax({
type: "POST",
url: "../yourcontroller/youraction",
data: "name=bill&surname=gates",
dataType: "json",
success: function (result) {
// result is json
}
});// ajax end
Controller Code
public ActionResult addNameSurname(string name,string surname)
{
/* your insert */
return Json(false);
}
© Copyright 2007-2010 iLyax.