private void RowDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow rowContainer = (DataGridRow)sender;

            przedmiot = (przedmiot_info)rowContainer.Item;


            dataGridObec.ItemsSource = getData().DefaultView;
        }
        private void RowDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow rowContainer = (DataGridRow)sender;

            przedmiot = (przedmiot_info)rowContainer.Item;


            if (lastclick != null)
            {
                lastclick.Background = white;
            }
            rowContainer.Background = green;
            lastclick = rowContainer;
        }
示例#3
0
        private void RowDoubleClickPrzedmiot(object sender, MouseButtonEventArgs e)
        {
            DataGridRow    rowContainer = (DataGridRow)sender;
            przedmiot_info przed        = (przedmiot_info)rowContainer.Item;

            if (przedmioty.Contains(przed))
            {
                przedmioty.Remove(przed);
                rowContainer.Background = white;
            }
            else
            {
                przedmioty.Add(przed);
                rowContainer.Background = green;
            }
        }