Пример #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)//add event
        {
            //  AddEditGameEvent addEditGameEvent = new AddEditGameEvent(StageID_, Team1, Team2, id_event, s, Min, Event, Info, Score1_, Score2_);
            AddEditGameEvent addEditGameEvent = new AddEditGameEvent(StageID_, Team1, Team2, Score1_, Score2_);

            addEditGameEvent.Show();
        }
Пример #2
0
        private void EditEvent_Click(object sender, RoutedEventArgs e)
        {
            int    id_event = (int)(TableEvent.SelectedItem as DataRowView).Row[0];
            int    Min      = (int)(TableEvent.SelectedItem as DataRowView).Row[1];
            int    SelTeam  = (int)(TableEvent.SelectedItem as DataRowView).Row[2];
            string Event    = (string)(TableEvent.SelectedItem as DataRowView).Row[3];
            string Info     = (string)(TableEvent.SelectedItem as DataRowView).Row[4];

            DataTable        Sel = DBAdapter.DB.RunSelect("Select TeamName from Teams where ID_Team='" + SelTeam + "'");
            string           s   = Sel.Rows[0].ItemArray[0].ToString();
            AddEditGameEvent addEditGameEvent = new AddEditGameEvent(StageID_, Team1, Team2, id_event, s, Min, Event, Info, Score1_, Score2_);

            addEditGameEvent.Show();
        }