protected override void OnInitUI() { modelPopWnd1 = GetChild <FButton>("modelPopWnd1"); modelPopWnd2 = GetChild <FButton>("modelPopWnd2"); nonModelPopWnd = GetChild <FButton>("nonModelPopWnd"); closeAllBtn = GetChild <FButton>("closeAllBtn"); close100Btn = GetChild <FButton>("close100Btn"); modelPopWnd1.OnClick((context) => { ViewManager.GetInstance().Open <TestExampleWindowTest1Wnd>(); }); modelPopWnd2.OnClick((context) => { ViewManager.GetInstance().Open <TestExampleWindowTest2Wnd>(); }); nonModelPopWnd.OnClick((context) => { FView.Create <TestExampleWindowTest1Wnd>(this); }); closeAllBtn.OnClick((context) => { ViewManager.GetInstance().CloseAll(); }); close100Btn.OnClick((context) => { ViewManager.GetInstance().CloseLayer(100); }); }
public Form2() { MouseNumber = 0; InitializeComponent(); //添加皮肤 this.skinEngine1.SkinFile = "MSN.ssk"; view = new FView(new FExtent(new FVertex(0, 0), new FVertex(1, 1)), panel1.ClientRectangle); ((Control)this).MouseWheel += new MouseEventHandler(panel1_MouseWheel); }
private void Bind() { d = new DemoEntities(); var V = from T in d.Total1 select T; GridView.DataSource = V.ToList(); GridView.DataBind(); DetView.DataSource = V.ToList(); DetView.DataBind(); FView.DataSource = V.ToList(); FView.DataBind(); }