예제 #1
0
        void BtnEditRow_Click(object sender, RoutedEventArgs e)
        {
            BidStatus bidStatus = dgvBidStatus.SelectedItem as BidStatus;

            if (bidStatus == null)
            {
                return;
            }
            BidStatusSaveWindow window = new BidStatusSaveWindow(bidStatus);

            window.ShowDialog();
        }
예제 #2
0
        //Дабл клик по строке таблицы - открывает окно редактирования
        private void RowDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = sender as DataGridRow;

            BidStatus bidStatus = row.Item as BidStatus;

            if (bidStatus == null)
            {
                return;
            }

            BidStatusSaveWindow window = new BidStatusSaveWindow(bidStatus);

            window.ShowDialog();

            viewSource.View.Refresh();
            dgvBidStatus.CurrentCell = new DataGridCellInfo(row.Item, dgvBidStatus.CurrentCell.Column);
        }
예제 #3
0
        void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            BidStatusSaveWindow window = new BidStatusSaveWindow();

            window.ShowDialog();
        }