コード例 #1
0
        public QrCodeDialog(string title, string description, QRCodeData qrData)
        {
            this.title       = title;
            this.Description = description;
            this.InitializeComponent();
            dialogBrush = new ClientDialogBrush();
            BitmapByteQRCode qrCode = new BitmapByteQRCode(qrData);

            qrCodeImageBmp = qrCode.GetGraphic(20);
            LoadQrImage();
        }
コード例 #2
0
 public FileActivatedDialog(bool status)
 {
     this.InitializeComponent();
     dialogBrush = new ClientDialogBrush();
     if (status)
     {
         Detail = Utils.AppResources.GetString("LoadDataSuccess");
     }
     else
     {
         Detail = Utils.AppResources.GetString("LoadDataError");
     }
 }
コード例 #3
0
 public ClientDialog(Model.Client.ClientInfo clientInfo)
 {
     this.client = clientInfo;
     dialogBrush = new ClientDialogBrush();
     typeModels  = TypeModel.GetAllModel();
     for (int i = 0; i < typeModels.Count; i++)
     {
         if (typeModels[i].type == client.deviceType)
         {
             SelectedIndex = i;
             break;
         }
     }
     this.InitializeComponent();
 }
コード例 #4
0
 public ClientDialog(Model.Client.ClientInfo clientInfo)
 {
     this.client = clientInfo;
     dialogBrush = new ClientDialogBrush();
     qos_enable  = client.isQosLimit;
     qos_down    = client.qos_down / 1024;
     qos_up      = client.qos_up / 1024;
     typeModels  = TypeModel.GetAllModel();
     for (int i = 0; i < typeModels.Count; i++)
     {
         if (typeModels[i].type == client.deviceType)
         {
             SelectedIndex = i;
             break;
         }
     }
     this.InitializeComponent();
 }
コード例 #5
0
 public UpdateLogDialog()
 {
     this.InitializeComponent();
     dialogBrush = new ClientDialogBrush();
 }