Exemple #1
0
        private void StartBtn_Click(object sender, RoutedEventArgs e)
        {
            int v = SitesAvailableDataGrid.SelectedIndex;

            SitesAvailable sitesAvailable = (SitesAvailable)SitesAvailableDataGrid.SelectedItem;

            checkbool[v]      = false;
            StopBtn.IsEnabled = false;
            MessageBox.Show("Start clicked For " + ((SitesAvailable)SitesAvailableDataGrid.SelectedItem).SiteName.ToString());
        }
Exemple #2
0
        private void SitesAvailableDataGrid_Selected(object sender, RoutedEventArgs e)
        {
            int            v              = SitesAvailableDataGrid.SelectedIndex;
            bool           flag           = checkbool[v];
            SitesAvailable sitesAvailable = (SitesAvailable)SitesAvailableDataGrid.SelectedItem;

            if (!flag)
            {
                StopBtn.IsEnabled = false;
            }
            else
            {
                StopBtn.IsEnabled = true;
            }
        }