コード例 #1
0
    private void Load_ME_Perf_Report_Details(int Report_ID, int Vessel_ID)
    {
        DataSet ds = BLL_FRM_MEPerformanceReport.Get_MEPerformanceReport(Report_ID, Vessel_ID);

        frmMain.DataSource = ds.Tables[4];
        frmMain.DataBind();

        frmMiscData.DataSource = ds.Tables[4];
        frmMiscData.DataBind();

        GridView_CYL.DataSource = ds.Tables[3];
        GridView_CYL.DataBind();

        TC1.Show_TC_Record(1, Report_ID, Vessel_ID);
        TC2.Show_TC_Record(2, Report_ID, Vessel_ID);
        TC3.Show_TC_Record(3, Report_ID, Vessel_ID);
        TC4.Show_TC_Record(4, Report_ID, Vessel_ID);
    }
コード例 #2
0
    public FormTab2()
    {
        TabControl tc = new TC2 {
            Dock = DockStyle.Fill
        };
        TabPage p1 = new TabPage()
        {
            Text = "Tab1"
        };
        TabPage p2 = new TabPage()
        {
            Text = "Tab2"
        };

        p1.Controls.Add(new Button {
            Text = "Button1"
        });
        p2.Controls.Add(new Button {
            Text = "Button2"
        });
        tc.TabPages.Add(p1);
        tc.TabPages.Add(p2);
        Controls.Add(tc);
    }