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 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.º 3
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();
 }