unity3d 虛擬現實的控件使用

   unity3d 虛擬現實在操作過程中是否需要使用控件呢?答案是肯定的。那麼關於unity3d 虛擬現實的控件使用方法您又是否瞭解呢?不瞭解也沒關係,現在就跟小編一起來詳細的看看unity3d 虛擬現實的控件使用方法吧。
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  

<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
   <title>無標題頁</title>  
</head>  
<body>  
   <form id="form1" runat="server">  
   <div>  
   <aspspacer.gifinkButton ID="LinkButton1" runat="server">first</aspspacer.gifinkButton>  
   <aspspacer.gifinkButton ID="LinkButton2" runat="server">second</asp:LinkButton>  
   <asp:LinkButton ID="LinkButton3" runat="server">third</asp:LinkButton>  
   <br />  
   <hr />  
   <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex = 1>  
       <asp:View ID="View1" runat="server">  
       this is the first page  
       </asp:View>  
       <asp:View ID="View2" runat="server">  
       this is the second page  
       </asp:View>    
       <asp:View ID="View3" runat="server">  
       this is the third page  
       </asp:View>                
   </asp:MultiView>  

using System;  
using System.Configuration;  
using System.Data;  
using System.Linq;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.HtmlControls;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Xml.Linq;  

public partial class _Default : System.Web.UI.Page  
{  
   protected void Page_Load(object sender, EventArgs e)  
   {  

   }  
   protected void LinkButton1_Click(object sender, EventArgs e)  
   {  
       this.MultiView1.ActiveViewIndex = 0;  
   }  
   protected void LinkButton2_Click(object sender, EventArgs e)  
   {  
       this.MultiView1.ActiveViewIndex = 1;  
   }  
   protected void LinkButton3_Click(object sender, EventArgs e)  
   {  
       this.MultiView1.ActiveViewIndex = 2;  
   }  
}  

View Code
//引用Access文本數據的類
using System.Data.OleDb;

/// <summary>
/// DBConnection 的摘要說明
/// </summary>
public class DBConnection
{
   OleDbConnection con = null;


   public DBConnection()
   {        
       con = new OleDbConnection("spacer.gifrovider=Microsoft.Jet.OLEDB.4.0; Data Source=E:\\northwind.mdb;");
   }

   public OleDbConnection Con
   {
       get { return con; }
       set { con = value; }
   }

}
/// <summary>
/// ProductsInfo 的摘要說明
/// </summary>
public class ProductsInfo
{
   //字段
   int productid;
   string productname;    
   decimal unitprice;      
   int categoryid;


   public ProductsInfo()
   {
       //
       // TODO: 在此處添加構造函數邏輯
       //
 public ProductsInfo(int productid, string productname, decimal unitprice, int categoryid)
   {
       this.productid = productid;
       this.productname = productname;
       this.unitprice = unitprice;
       this.categoryid = categoryid;
   }
 public int Productid
   {
       get { return productid; }
       set { productid = value; }
   }
   public string Productname
   {
       get { return productname; }
       set { productname = value; }
   }
   public decimal Unitprice
   {
     get { return unitprice; }
     set { unitprice = value; }
   }
   public int Categoryid
   {
       get { return categoryid; }
       set { categoryid = value; }
   }
View Code
using System.Data.OleDb;
using System.Collections.Generic;
/// <summary>
/// ProductsOper 的摘要說明
/// </summary>
public class ProductsOper
{
   public ProductsOper()
   {
       //
       // TODO: 在此處添加構造函數邏輯
       //
  unity3d 虛擬現實的控件使用方法比較考驗程序員對於unity3d 的熟悉度以及基本操作技術的掌握。因爲如果你對於unity3d 不夠熟悉,基本的操作不瞭解的話那麼在進行unity3d 虛擬現實的控件使用的時候就會遇到難題,難以順利的完成unity3d 虛擬現實的控件使用操作。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章