示例#1
0
        private void mnsAdd_Click(object sender, RoutedEventArgs e)
        {
            D05F2140 frmTable = LoadD05F2140();
            int      i        = GridTable.View.FocusedRowData.RowHandle.Value;

            frmTable.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            frmTable.ShowDialog();
            LoadSimple();
            GridTable.FocusRowHandle(i);
        }
示例#2
0
        private void mnsRead_Click(object sender, RoutedEventArgs e)
        {
            D05F2140 frmTable = LoadD05F2140();
            int      i        = GridTable.View.FocusedRowData.RowHandle.Value;

            frmTable.btnSave.Visibility          = Visibility.Hidden;
            frmTable.btnPay.Visibility           = Visibility.Hidden;
            frmTable.btnAdd10Quatity.Visibility  = Visibility.Hidden;
            frmTable.btnAddQuatity.Visibility    = Visibility.Hidden;
            frmTable.btnDeleteQuatity.Visibility = Visibility.Hidden;
            frmTable.txtItem.IsEnabled           = false;
            frmTable.WindowStartupLocation       = WindowStartupLocation.CenterScreen;
            frmTable.ShowDialog();
            LoadSimple();
            GridTable.FocusRowHandle(i);
        }