예제 #1
0
        private void btnViewDifferences_Click(object sender, EventArgs e)
        {
            if (cmbBranch.EditValue == null)
            {
                return;
            }
            frmViewItems obj =
                new frmViewItems(new CountingRepository().GetStockCountingDiff(
                                     cmbBranch.EditValue));

            obj.ShowInTaskbar = false;
            obj.StartPosition = FormStartPosition.CenterScreen;
            obj.ShowDialog();
        }
예제 #2
0
        private void btnViewItems_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (gvStockCounting.FocusedRowHandle < 0)
            {
                return;
            }
            frmViewItems obj =
                new frmViewItems(new CountingRepository().GetStockCountingDetail(
                                     gvStockCounting.GetFocusedRowCellValue("STOCKCOUNTINGID")));

            obj.ShowInTaskbar = false;
            obj.StartPosition = FormStartPosition.CenterScreen;
            obj.ShowDialog();
        }