وبلاگ رسمی علیرضا شهامت در بلاگ اسکای

وبلاگ رسمی علیرضا شهامت در بلاگ اسکای

وبلاگ رسمی علیرضا شهامت در بلاگ اسکای - تأسیس شده در سال 1396
وبلاگ رسمی علیرضا شهامت در بلاگ اسکای

وبلاگ رسمی علیرضا شهامت در بلاگ اسکای

وبلاگ رسمی علیرضا شهامت در بلاگ اسکای - تأسیس شده در سال 1396

VLC\1398 12 24\1403\LrVL - ؟؟؟ - کار با اعداد زمان - شروع ساخت مدیا پلیر با سی شارپ


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
Path = "...\DS\a\o\Crt\mm\C#\8x\sln\tp\VLC\1398 12 24\1403\LrVL"
VLC\1398 12 24\1403\LrVL
filename ="Form1.Designer.cs"
///////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
namespace LrVL
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.button1 = new System.Windows.Forms.Button();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            //
            // button1
            //
            this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.button1.Location = new System.Drawing.Point(12, 12);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(141, 54);
            this.button1.TabIndex = 0;
            this.button1.Text = "button1";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // textBox1
            //
            this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.textBox1.Location = new System.Drawing.Point(12, 72);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(141, 32);
            this.textBox1.TabIndex = 1;
            //
            // timer1
            //
            this.timer1.Enabled = true;
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            //
            // textBox2
            //
            this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.textBox2.Location = new System.Drawing.Point(12, 110);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(505, 23);
            this.textBox2.TabIndex = 1;
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(769, 444);
            this.Controls.Add(this.textBox2);
            this.Controls.Add(this.textBox1);
            this.Controls.Add(this.button1);
            this.Name = "Form1";
            this.Text = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.Timer timer1;
        private System.Windows.Forms.TextBox textBox2;
    }
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
Path = "...\DS\a\o\Crt\mm\C#\8x\sln\tp\VLC\1398 12 24\1403\LrVL"
VLC\1398 12 24\1403\LrVL
filename ="Form1.cs"

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LrVL
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }



        int day;
        int hour;
        int minute;
        int second;
        int frame;



        string str_day;
        string str_hour;
        string str_minute;
        string str_second;
        string str_frame;


        string str_Total_short;

        string str_Total_long;



        int min_frame;
        int min_second;
        int min_minute;
        int min_hour;
        int min_day;


        int max_frame;
        int max_second;
        int max_minute;
        int max_hour;




        private void button1_Click(object sender, EventArgs e)
        {


        }

        private void timer1_Tick(object sender, EventArgs e)
        {



            /////////////////////////////////


            str_day = day.ToString();

            str_hour = hour.ToString();

            str_minute = minute.ToString();

            str_second = second.ToString();

            str_frame = frame.ToString();



            /////////////////////////////////



            str_Total_short = "";

            str_Total_short += str_day + ":/";

            str_Total_short += str_hour + ":";

            str_Total_short += str_minute + ":";

            str_Total_short += str_second + ":/";

            str_Total_short += str_frame;


            /////////////////////////////////



            str_Total_long = " Time = ";

            str_Total_long += str_day + " day(s) and ";

            str_Total_long += str_hour + " hour(s) and ";

            str_Total_long += str_minute + " minute(s) and ";

            str_Total_long += str_second + " second(s) and ";

            str_Total_long += str_frame + " frame(s) ";


            /////////////////////////////////

            textBox1.Text = str_Total_short;

            textBox2.Text = str_Total_long;

            /////////////////////////////////



            if (frame + 1 <= max_frame)
            {
                frame++;
            }
            else if (frame + 1 > max_frame)
            {
                frame = min_frame;
                second++;
            }

            /////////////////////////////////
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            frame = 1;


            min_frame = 1;
            min_second = 0;
            min_minute = 0;
            min_hour = 0;
            min_day = 0;

            max_frame=24;
            max_second=59;
            max_minute=59;
            max_hour=23;


        }



    }
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////

نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد