#179

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024
  • #179 C# GENERATE PIE CHART EMPLOYEES رسم دائرة احصائية تعليم سي شارب
    ان شاء الله الكورس متجدد دائماً - تابعونا
    اسهل طريقة لتعلم وشرح لغة السي شارب بالتفصيل من البداية الي الاحتراف - سي شارب طريقك الي البرامج ومواقع الانترنت واندرويد واي فون و ويندوز فون
    The easiest way to learn the C # language explains in detail from beginning to professionalism ( Zero To Hero ) - C # your way to Programs , Web App , i phone app , windows phone app AND Android applications
    تابعوا الدروس اول بأول فقط علي اكاديمية حسونة
    بفضل الله أي حلقة هامة جداً وفي غاية الأهمية
    سي شارب
    C #

ความคิดเห็น • 12

  • @omarabdelhamid4238
    @omarabdelhamid4238 4 ปีที่แล้ว

    بارك الله فيك يا استاذ ونفع الله بك وجعله في ميزان حسناتك ويسر الله عليك كل عسير ..دعوة في ليلة فردية

  • @thefuturestechnology5511
    @thefuturestechnology5511 5 ปีที่แล้ว

    ربنا يبارلك ويجعله في ميزان حسناتك

  • @mesobabel8600
    @mesobabel8600 6 ปีที่แล้ว

    الله يبارك فيك ويكرمك وجزاك الله خيرا وشكرا جزيلا للاستاذ الفاضل احمد محمد باريان على الدعم اللامتناهي

  • @yosifpharmapro6768
    @yosifpharmapro6768 6 ปีที่แล้ว

    أحسنت وفقكم الله

  • @omarbshr
    @omarbshr 6 ปีที่แล้ว

    جزاك الله خيرا

  • @yu5uy
    @yu5uy 4 ปีที่แล้ว +2

    انا عملت نفس الدرس وعرضت النسب المئويه لكن وضعت شيء متقدم اكثر من شرح الفيديو وهو خليت مربعات نصوص وخليت اليوزر او المستخدم يكتب رواتب الموظفين وراح يعرض له النسبه المئويه لكل موظف
    private void btnshow_Click(object sender, EventArgs e)
    {
    // الرواتب الاساسيه
    if (txt1.Text.Trim() != "" && txt2.Text.Trim() !="" && txt3.Text.Trim() != "" && txt4.Text.Trim() != "")
    {
    double officer1 = Math.Round(double.Parse(txt1.Text));
    double officer2 = Math.Round(double.Parse(txt2.Text));
    double officer3 = Math.Round(double.Parse(txt3.Text));
    double officer4 = Math.Round(double.Parse(txt4.Text));


    // MessageBox.Show(officer1 + " ; " + officer2 + " ; " + officer3 + " ; " + officer4 + "");
    double total_salar = officer1 + officer2 + officer3 + officer4; //مجموع الرواتب
    // رواتب الموظفين نسبه مئويه
    int officer1p = (int)Math.Round((officer1 / total_salar)*100);
    int officer2p = (int)Math.Round((officer2 / total_salar)*100);
    int officer3p = (int)Math.Round((officer3 / total_salar) * 100);
    int officer4p = (int)Math.Round((officer4 / total_salar) * 100);
    // MessageBox.Show(officer1p +" ; "+ officer2p + " ; " + officer3p + " ; " + officer4p+"");
    // رواتب الموظفين لدائرة الاحصائيات
    int officer1Ppie = ((officer1p * 360) / 100);
    int officer2Ppie = ((officer2p * 360) / 100);
    int officer3Ppie = ((officer3p * 360) / 100);
    int officer4Ppie = ((officer4p * 360) / 100);
    // MessageBox.Show(officer1Ppie + " ; " + officer2Ppie + " ; " + officer3Ppie + " ; " + officer4Ppie + "");
    lbl1.Text = officer1p.ToString() + " %";
    lbl2.Text = officer2p.ToString() + " %";
    lbl3.Text = officer3p.ToString() + " %";
    lbl4.Text = officer4p.ToString() + " %";
    this.CreateGraphics().FillPie(Brushes.White, 450, 230, 100, 100, 0, officer1Ppie);
    this.CreateGraphics().FillPie(Brushes.DarkBlue, 450, 230, 100, 100, officer1Ppie, officer2Ppie);
    this.CreateGraphics().FillPie(Brushes.DarkGreen, 450, 230, 100, 100, officer1Ppie+ officer2Ppie, officer3Ppie);
    this.CreateGraphics().FillPie(Brushes.DarkRed, 450, 230, 100, 100, officer1Ppie + officer2Ppie+ officer3Ppie, officer4Ppie);
    }
    }

  • @dejavu1928
    @dejavu1928 5 ปีที่แล้ว +1

    التمرين
    file:///C:/Users/ICE/Desktop/Pie%20EmpData.pdf

  • @omarabdelhamid4238
    @omarabdelhamid4238 4 ปีที่แล้ว

    Homework :
    int emp1 = 20000;
    int emp2 = 25000;
    int emp3 = 15000;
    int emp4 = 10000;
    int emp5 = 30000;
    double total = emp1 + emp2 + emp3 + emp4 + emp5;
    double emp1p = (emp1 / total) * 100;
    double emp2p = (emp2 / total) * 100;
    double emp3p = (emp3 / total) * 100;
    double emp4p = (emp4 / total) * 100;
    double emp5p = (emp5 / total) * 100;
    //MessageBox.Show(emp1p.ToString());
    double emp1pd = (emp1p * 360) / 100;
    double emp2pd = (emp2p * 360) / 100;
    double emp3pd = (emp3p * 360) / 100;
    double emp4pd = (emp4p * 360) / 100;
    double emp5pd = (emp5p * 360) / 100;
    //MessageBox.Show(emp1pd.ToString());
    this.CreateGraphics().FillPie(Brushes.Navy, 50, 50, 200, 200, 0, (float)emp1pd);
    this.CreateGraphics().FillPie(Brushes.DarkOrange, 50, 50, 200, 200, (float)emp1pd, (float)emp2pd);
    this.CreateGraphics().FillPie(Brushes.DarkRed, 50, 50, 200, 200, (float)(emp1pd + emp2pd), (float)emp3pd);
    this.CreateGraphics().FillPie(Brushes.Purple, 50, 50, 200, 200, (float)(emp1pd + emp2pd + emp3pd), (float)emp4pd);
    this.CreateGraphics().FillPie(Brushes.DarkOliveGreen, 50, 50, 200, 200, (float)(emp1pd + emp2pd + emp3pd + emp4pd), (float)emp5pd);
    this.CreateGraphics().DrawString("Emp 1 : " + emp1, new Font("Arial", 14, FontStyle.Bold), Brushes.Navy, 350, 100);
    this.CreateGraphics().DrawString("Emp 2 : " + emp2, new Font("Arial", 14, FontStyle.Bold), Brushes.DarkOrange, 350, 130);
    this.CreateGraphics().DrawString("Emp 3 : " + emp3, new Font("Arial", 14, FontStyle.Bold), Brushes.DarkRed, 350, 160);
    this.CreateGraphics().DrawString("Emp 4 : " + emp4, new Font("Arial", 14, FontStyle.Bold), Brushes.Purple, 350, 190);
    this.CreateGraphics().DrawString("Emp 5 : " + emp5, new Font("Arial", 14, FontStyle.Bold), Brushes.DarkOliveGreen, 350, 220);
    }
    private void btnClear_Click(object sender, EventArgs e)
    {
    this.CreateGraphics().Clear(Color.White);
    }

  • @thenedak
    @thenedak 6 ปีที่แล้ว

    حابب اتواصل مع حضرتك لعمل مشروع

  • @motivation9512-d5w
    @motivation9512-d5w 4 ปีที่แล้ว

    ازاي ضرب نسبة الفلوس 360x علي 100؟؟ مش المفروض بضرب في 100!!