Exemplo n.º 1
0
        private void AboutForm_Load(object sender, EventArgs e)
        {
            Api.WebApi api = new Api.WebApi();
            //MessageBox.Show("AboutForm" + User.FullName);
            string aboutText = api.AboutText(User);

            webBrowserAbout.DocumentText = "<body style='background:#181818 url(https://ubs.cbu.edu.tr/images/tulip.png) 50% no-repeat fixed;color:white;'><div style='text-align: justify;font-size: 20px;'>" +
                                           aboutText
                                           + "</div></body>";
        }
Exemplo n.º 2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            Api.WebApi webApi = new Api.WebApi();

            //var list = webApi.DrugList(false, "test");
            // var text = webApi.AboutText(User);
            //MessageBox.Show(text);
            //var drug = webApi.GetDrugByBarcode("8699525134028");
            // var drug = webApi.InsertDrug("86990000","test123");
            //var list = webApi.MessagesList();
            //var list = webApi.AdminList();

            //var admin = webApi.LoginUser("eczorcun","123");

            //var list = webApi.GetStats();
            //foreach (var s in list)
            //{
            //    MessageBox.Show(s.DrugName);
            //}
            //webApi.CreateLog("Test","1");
        }
Exemplo n.º 3
0
        private void CreateSoundFileForm_Load(object sender, EventArgs e)
        {
            //MessageBox.Show("CreateSoundFileForm" + User.FullName);
            labelBarcode.Text = barcode;

            if (text.Length >= 30)
            {
                labelText.Text = text.Substring(0, 30) + "....";
            }
            else
            {
                labelText.Text = text + "....";
            }
            Api.WebApi api = new Api.WebApi();

            if (type == 0)
            {
                name = "nameTest.mp3";
                path = "FinalYearProject/Files/NameAudioFiles/";
                //  api.CreateLog("name sound create:"+barcode, User);
            }
            else
            {
                name = "descriptionTest.mp3";
                path = "FinalYearProject/Files/DescriptionAudioFiles/";
                //  api.CreateLog("desc sound create:" + barcode, User);
            }


            labelSoundFile.Text = name;

            CheckForIllegalCrossThreadCalls = false;


            Thread t1 = new Thread(DeleteOldFile);

            t1.Start();
        }