コード例 #1
0
ファイル: BikePage1.aspx.cs プロジェクト: Swiftrow/Project
        protected void Button1_Click2(object sender, EventArgs e)
        {
            var s = new Service1();
            var b = new Bike();

            int ID = Int32.Parse(IDBike.Text);

            b = s.FindBikeById(ID);

            Name.Text = b.Name;
            Category.Text = b.Category;
        }
コード例 #2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
#if DEBUG
            Service1 myService = new Service1();
            myService.OnDebug();
            System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new Service1()
            };
            ServiceBase.Run(ServicesToRun);
#endif
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: andersonluizpereira/school
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     #if DEBUG
     Service1 myService = new Service1();
     myService.OnDebug();
     System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
     #else
     ServiceBase[] ServicesToRun;
     ServicesToRun = new ServiceBase[]
     {
         new Service1()
     };
     ServiceBase.Run(ServicesToRun);
     #endif
 }