コード例 #1
0
 private void PalanquinButton_Click(object sender, RoutedEventArgs e)
 {
     Decoration.DecorationService sr = new Decoration.DecorationService();
     DecorationDataGrid.ItemsSource = sr.StageItemData("Palanquin", "palanquin");
     DecorationNameTextBox.Text     = "";
     DecorationStatusTextBox.Text   = "";
     DecorationCostTextBox.Text     = "";
 }
コード例 #2
0
 private void StreetLightButton_Click(object sender, RoutedEventArgs e)
 {
     Decoration.DecorationService sr = new Decoration.DecorationService();
     DecorationDataGrid.ItemsSource = sr.StageItemData("StreetLight", "streetlight");
     DecorationNameTextBox.Text     = "";
     DecorationStatusTextBox.Text   = "";
     DecorationCostTextBox.Text     = "";
 }
コード例 #3
0
        private void DecorationRemoveButton_Click(object sender, RoutedEventArgs e)
        {
            Decoration.DecorationService DL = new Decoration.DecorationService();
            int i = DL.DeleteDecoration(DecorationNameTextBox.Text, DecorationStatusTextBox.Text);

            DecorationDataGrid.ItemsSource = DL.StageItemData(DecorationNameTextBox.Text, DecorationNameTextBox.Text);
            DecorationNameTextBox.Text     = "";
            DecorationStatusTextBox.Text   = "";
            DecorationCostTextBox.Text     = "";
        }
コード例 #4
0
        private void DecorationUpdateButton_Click(object sender, RoutedEventArgs e)
        {
            Decoration.DecorationService update = new Decoration.DecorationService();
            int i = update.UpdateDecoration(DecorationNameTextBox.Text, DecorationStatusTextBox.Text, DecorationCostTextBox.Text);

            if (i == 1)
            {
                //MessageBox.Show("   Successfully Updated   ")
                DecorationDataGrid.ItemsSource = update.StageItemData(DecorationNameTextBox.Text, DecorationNameTextBox.Text);
                DecorationNameTextBox.Text     = "";
                DecorationStatusTextBox.Text   = "";
                DecorationCostTextBox.Text     = "";
            }
        }
コード例 #5
0
 private void DecorationButton_Click(object sender, RoutedEventArgs e)
 {
     HomeGrid.Visibility           = System.Windows.Visibility.Collapsed;
     MemberGrid.Visibility         = System.Windows.Visibility.Collapsed;
     PackageGrid.Visibility        = System.Windows.Visibility.Collapsed;
     CenterGrid.Visibility         = System.Windows.Visibility.Collapsed;
     MyProfileViewGrid.Visibility  = System.Windows.Visibility.Collapsed;
     MembersButton.Background      = Brushes.OliveDrab;
     HomeButton.Background         = Brushes.OliveDrab;
     PackagesButton.Background     = Brushes.OliveDrab;
     CenterButton.Background       = Brushes.OliveDrab;
     SoftwareInfoButton.Background = Brushes.OliveDrab;
     DecorationButton.Background   = Brushes.Green;
     SoftwareInfoGrid.Visibility   = System.Windows.Visibility.Collapsed;
     DecorationrGrid.Visibility    = System.Windows.Visibility.Visible;
     Decoration.DecorationService sr = new Decoration.DecorationService();
     DecorationDataGrid.ItemsSource = sr.StageItemData("Stage", "stage");
     DecorationNameTextBox.Text     = "";
     DecorationStatusTextBox.Text   = "";
     DecorationCostTextBox.Text     = "";
 }