Exemplo n.º 1
0
 public TextSetting(ITextSetting iTextSetting)
 {
     InitializeComponent();
     cmbFontSize.DataSource = CmbDataItemFactory.GetFontSizeList();
     cmbFont.DataSource     = CmbDataItemFactory.GetFontList();
     this._guid             = Guid.NewGuid().ToString("N");
     this._iTextSetting     = iTextSetting;
 }
Exemplo n.º 2
0
 public BarcodeSetting(IBarcodeSetting iBarcodeSetting)
 {
     InitializeComponent();
     cmbSizeList.DataSource = CmbDataItemFactory.GetSizeList();
     cmbTypeList.DataSource = CmbDataItemFactory.GetBarcodeType();
     this._ibarCodeSetting  = iBarcodeSetting;
     this._guid             = Guid.NewGuid().ToString("N");
 }
Exemplo n.º 3
0
 public SerialNumberSetting(ISerialNumberSetting iSerialNumberSetting, SerialNumberParameter parameter)
 {
     Log.Info($"传入的参数:{JsonConvert.SerializeObject(parameter)}");
     InitializeComponent();
     this._serialNumberSetting = iSerialNumberSetting;
     this._parameter           = parameter;
     this._guid             = Guid.NewGuid().ToString("N");
     cmbFormat.DataSource   = CmbDataItemFactory.GetSerialNumberFormatList();
     cmbFontSize.DataSource = CmbDataItemFactory.GetFontSizeList();
     cmbStyle.DataSource    = CmbDataItemFactory.GetFontList();
 }
Exemplo n.º 4
0
 public TimeSetting(ITimeSetting timeSetting, TimeSettingParameter parameter)
 {
     InitializeComponent();
     //样式
     this._guid             = Guid.NewGuid().ToString("N");
     this._timeSetting      = timeSetting;
     this._format           = parameter.Format;
     this._size             = parameter.Size;
     cmbStyle.DataSource    = CmbDataItemFactory.GetTimeStyleList();
     cmdFont.DataSource     = CmbDataItemFactory.GetFontList();
     cmbFontSize.DataSource = CmbDataItemFactory.GetFontSizeList();
 }
Exemplo n.º 5
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //加载串口
            var serialPortList = GetSerialPortList();

            comboBoxPmj.DataSource = serialPortList;
            //加载文件列表
            var fileList = CmbDataItemFactory.GetFileList();

            cmbFileList.DataSource = fileList;
            //plc的文件列表
            comboPlcList.DataSource = GetSerialPortList1();
            //获取选中的端口,从配置文件中直接读取,如果不存在的话,就默认第一项
            SetPort();
        }
Exemplo n.º 6
0
 private void ParameterSetting_Load(object sender, EventArgs e)
 {
     //灰度
     cmbGrayList.DataSource = CmbDataItemFactory.GetGrayList();
     //喷头电压
     cmbVList.DataSource = CmbDataItemFactory.GetVList();
     //喷头选择
     cmbPrintList.DataSource = CmbDataItemFactory.GetPrintList();
     //自动关机
     cmbShutdownList.DataSource = CmbDataItemFactory.GetShutdownList();
     //打印文件
     cmbFileList.DataSource = CmbDataItemFactory.GetPaperList();
     //闲置设置
     cmbLeaveTime.DataSource = CmbDataItemFactory.GetLeaveTimeList();
     //脉冲宽度
     cmbPulseWidth.DataSource = CmbDataItemFactory.GetPulseWidthList();
     //保留参数
     cmbParameter2.DataSource = CmbDataItemFactory.GetRetainParameterList();
 }