public Form1()
        {
            InitializeComponent();

            QR_Type = QRType.Website;

            btn_web.Text.Click   += Text_Click;
            btn_text.Text.Click  += Text_Click1;
            btn_email.Text.Click += Text_Click2;
            btn_save.Text.Click  += Text_Click3;
            btn_color.Text.Click += Text_Click4;
        }
Exemple #2
0
        /// <summary>
        /// QR decomposition
        /// </summary>
        /// <param name="qRType"></param>
        /// <returns></returns>
        public QRResult QR(QRType qRType = QRType.HouseholderQR)
        {
            double[] q = new double[Rows * Rows];
            double[] r = new double[Rows * Cols];

            switch (qRType)
            {
            case QRType.ColPivHouseholderQR:
                double[] p = new double[Cols * Cols];
                EigenDenseUtilities.ColPivHouseholderQR(GetValues(), Rows, Cols, q, r, p);
                return(new QRResult(new MatrixXD(q, Rows, Rows), new MatrixXD(r, Rows, Cols), new MatrixXD(p, Cols, Cols)));

            case QRType.HouseholderQR:
            default:
                EigenDenseUtilities.HouseholderQR(GetValues(), Rows, Cols, q, r);
                break;
            }

            return(new QRResult(new MatrixXD(q, Rows, Rows), new MatrixXD(r, Rows, Cols)));
        }
		public MediaQRContent (string text, BarCodeType barcodeType, QRType qrType)
		{
			Text = text;
			BarcodeType=barcodeType;
			QRType = qrType;
		}
 public MediaQRContent(string text, BarCodeType barcodeType, QRType qrType)
 {
     Text        = text;
     BarcodeType = barcodeType;
     QRType      = qrType;
 }
 public MediaQRContent()
 {
     Text        = String.Empty;
     BarcodeType = BarCodeType.QR_CODE;
     QRType      = QRType.TEXT;
 }
Exemple #6
0
 public void WriteQR(QRType type, CorrectionLevel correction, string s)
 {
     DeedeeDocWriteQR(ptr, (int)type, (int)correction, s);
 }
Exemple #7
0
 public EQRInfo QR_GetById(long Id, QRType qrType)
 {
     return(DBQRInfo.Where(a => a.ID == Id && a.Type == qrType).FirstOrDefault());
 }
Exemple #8
0
        public Boolean IsExistQR(string openId, string name, QRType qrType)
        {
            int i = DBQRInfo.Count(u => u.OwnnerOpenId == openId && u.Name == name && u.Type == qrType);

            return(i > 0);
        }
 private void Text_Click1(object sender, EventArgs e)
 {
     textBox1.BackColor = Color.FromArgb(18, 53, 77);
     QR_Type            = QRType.Text;
     this.ActiveControl = textBox1;
 }
 private void Text_Click(object sender, EventArgs e)
 {
     textBox1.BackColor = Color.FromArgb(66, 41, 0);
     QR_Type            = QRType.Website;
     this.ActiveControl = textBox1;
 }
 private void Text_Click2(object sender, EventArgs e)
 {
     textBox1.BackColor = Color.FromArgb(11, 46, 25);
     QR_Type            = QRType.Email;
     this.ActiveControl = textBox1;
 }