//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
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;
}
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////