コード例 #1
0
        public Captura(CIDSysR30 objIDSysR30)
        {
            InitializeComponent();
            this.strPIS = "";

            this.objIDSysR30 = objIDSysR30;
        }
コード例 #2
0
ファイル: Rede_old.cs プロジェクト: bravesoftdz/assecont_reps
        public Rede(CIDSysR30 objIDSysR30, string ip, int porta, TextBox log /*, CSocketClient socket = null*/)
        {
            this.IP    = ip;
            this.Porta = porta;
            this.Log   = log;

            try
            {
                this.objIDSysR30     = objIDSysR30;
                this.objSocketClient = new CSocketClient(IP, Porta);
            }
            catch (Exception exError)
            {
                this.AddLog(exError.Message);
            }
        }
コード例 #3
0
        private void frmPrincipal_Load(object sender, EventArgs e)
        {
            RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Assecont\\Asseponto4\\Opcoes");

            mmSobreporFuncionarios.Checked             = Convert.ToBoolean(key.GetValue("Sobrepor funcionarios no terminal", true));
            mmNaoEnviarFuncEnviados.Checked            = Convert.ToBoolean(key.GetValue("Nao enviar funcionarios para o terminal se ja foi enviado", true));
            mmGerarArquivoUsbApenasNaoEnviados.Checked = Convert.ToBoolean(key.GetValue("Gerar no arquivo usb apenas os funcionarios nao enviados", true));
            key.Close();

            try
            {
                this.objIDSysR30 = new CIDSysR30();
            }
            catch (Exception exError)
            {
                MessageBox.Show(exError.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            preencher_terminais();
            ler_grupo();
        }