Exemplo n.º 1
0
        private void ClearFld()
        {
            foreach (Control control in PanelContainer.Controls)
            {
                if (control is TextBox)
                {
                    control.Text = "";
                }
            }
            _ProductGrpId      = 0;
            TxtDescription.Tag = "0";
            CbActive.Checked   = true;
            PrintDocument prtdoc            = new PrintDocument();
            string        strDefaultPrinter = prtdoc.PrinterSettings.PrinterName;

            CmbPrinter.SelectedIndex = CmbPrinter.FindString(strDefaultPrinter);
            TxtDescription.Focus();
        }
Exemplo n.º 2
0
        private void ClearFld()
        {
            foreach (Control control in PanelContainer.Controls)
            {
                if (control is TextBox)
                {
                    control.Text = "";
                }
            }
            _ProductGrpId      = 0;
            TxtDescription.Tag = "0";
            CbActive.Checked   = true;
            PrintDocument prtdoc            = new PrintDocument();
            string        strDefaultPrinter = prtdoc.PrinterSettings.PrinterName;

            CmbPrinter.SelectedIndex = CmbPrinter.FindString(strDefaultPrinter);
            TxtDescription.Focus();

            DataTable DtGodown = _objGodown.GetDataGodown(0);

            CmbGodown.ValueMember   = "GodownId";
            CmbGodown.DisplayMember = "GodownDesc";
            CmbGodown.DataSource    = DtGodown;
        }