コード例 #1
0
 protected void Back()
 {
     NameLabel.Hide();
     NameBox.Hide();
     NameBox.Text = "";
     TypeLabeld.Hide();
     Typebox.Hide();
     OwnerLabel.Hide();
     OwnerBox.Hide();
     OwnerBox.Text = "";
     AddButton.Show();
     ViewButton.Show();
     BackButton.Hide();
     DoneButton.Hide();
     ScreenLabel.Hide();
     ScreenSpin.Hide();
     ScreenSpin.Text = "0";
     CatLabel.Hide();
     CatBox.Hide();
     ExcLabel.Hide();
     ExTablesButton.Hide();
     ExTablesButton.Active = false;
     HoursLabel.Hide();
     HoursBox.Hide();
     HoursBox.Text = "";
 }
コード例 #2
0
    protected void OnTypeboxChanged(object sender, EventArgs e)
    {
        ComboBox it = (ComboBox)sender;

        ScreenLabel.Hide();
        ScreenSpin.Hide();
        CatLabel.Hide();
        CatBox.Hide();
        ExcLabel.Hide();
        ExTablesButton.Hide();


        if (it.ActiveText == "Cine")
        {
            ScreenLabel.Show();
            ScreenSpin.Show();
        }
        else if (it.ActiveText == "Restaurant")
        {
            ExcLabel.Show();
            ExTablesButton.Show();
        }
        else if (it.ActiveText == "Store")
        {
            CatLabel.Show();
            CatBox.Show();
        }

        else if (it.ActiveText == "Hobbie")
        {
        }
    }