Ejemplo n.º 1
0
        private void btnSavePrinter_Click(object sender, EventArgs e)
        {
            try
            {
                var left = Convert.ToInt32(textLeftOffset.Text);
                var top  = Convert.ToInt32(textTopOffset.Text);

                _labelType.LeftOffset = left;
                _labelType.TopOffset  = top;
            }
            catch
            {
                textTopOffset.Text  = _labelType.TopOffset.ToString();
                textLeftOffset.Text = _labelType.ToString();
            }
            _labelType.TemplateFile = textLocation.Text;
            _labelType.Printer      = cbbPrinter.Text;
            _setting.Reload();
            _setting.UpdateLabelType(_labelType);
            _setting.Save();
        }