예제 #1
0
 private void initializeControls() {
     // Deshabiliar controles de estado de sincronización            
     this.syncStatusLabel.Text = "";
     this.displaySyncStatusComponents(false);
     // Mostrar propiedades del sistema
     this.clearDrawInfoLabels();
     String version = UtilityService.getApplicationSimpleVersion();
     this.softwareVersionLabel.Text = $"v {version} ";
     this.versionFooterLabel.Text = $"v {version} ";
     this.userContentLabel.Text = SystemSession.username;
     this.posContentLabel.Text = SystemSession.salePoint;
     this.companyContentLabel.Text = SystemSession.company;
     this.servicePathLabel.Text = ServiceConectionConstants.getServiceApiEndPoint();
     // Habilitar la sincronización periódica si está activa
     this.enablePeriodSync();
 }
예제 #2
0
        private void aboutButton_Click(object sender, EventArgs e)
        {
            /*
            ServerConnectionService serverConnection = new ServerConnectionService();
            Object result = serverConnection.synchronizeDrawAssociation().result;
            Console.WriteLine(result);
            JObject jsonObject = JObject.FromObject(result);
            Console.WriteLine(jsonObject);
            string createDate = (string) jsonObject["createDate"];
            Console.WriteLine(createDate);
            JObject draw = (JObject) jsonObject["lotteryDraw"];
            Console.WriteLine(draw);
            */

            /*
            DisplayQRForm qrForm = new DisplayQRForm();
            qrForm.Show();
            */

            String version = UtilityService.getApplicationVersion();
            String serviceUrl = ServiceConectionConstants.getServiceApiEndPoint();
            MessageBox.Show($"SILO Application. Version: {version}\n\nServicio: {serviceUrl}");
            
        }
예제 #3
0
 private void acercaDeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     String version = UtilityService.getApplicationVersion();
     String serviceUrl = ServiceConectionConstants.getServiceApiEndPoint();
     MessageBox.Show($"SILO Application. Version: {version}\n\nServicio: {serviceUrl}");
 }