<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FTime</id>
		<title>Csharp/C Sharp/GUI Windows Form/Time - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FTime"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Time&amp;action=history"/>
		<updated>2026-04-29T21:22:04Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Time&amp;diff=142&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Time&amp;diff=142&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Time&amp;diff=143&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/Time&amp;diff=143&amp;oldid=prev"/>
				<updated>2010-05-26T11:33:31Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==GUI and timer==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
C# Programming Tips &amp;amp; Techniques&lt;br /&gt;
by Charles Wright, Kris Jamsa&lt;br /&gt;
Publisher: Osborne/McGraw-Hill (December 28, 2001)&lt;br /&gt;
ISBN: 0072193794&lt;br /&gt;
*/&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
namespace Clock&lt;br /&gt;
{&lt;br /&gt;
  /// &amp;lt;summary&amp;gt;&lt;br /&gt;
  /// Summary description for ClockForm.&lt;br /&gt;
  /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
  public class ClockForm : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.Timer timer1;&lt;br /&gt;
    private System.Windows.Forms.Label label2;&lt;br /&gt;
    private System.ruponentModel.IContainer components;&lt;br /&gt;
    #region ClockForm Constructor&lt;br /&gt;
    public ClockForm()&lt;br /&gt;
    {&lt;br /&gt;
      //&lt;br /&gt;
      // Required for Windows Form Designer support&lt;br /&gt;
      //&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      //&lt;br /&gt;
      // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
      //&lt;br /&gt;
      // The following line sets the text for the label box.&lt;br /&gt;
      // To display no text, simply use two quote marks.&lt;br /&gt;
      label1.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      // The following two statements set the text size and&lt;br /&gt;
      // cause the time to appear centered in the label box&lt;br /&gt;
      label1.Font = new System.Drawing.Font&lt;br /&gt;
        (&amp;quot;Microsoft Sans Serif&amp;quot;, 24);&lt;br /&gt;
      label1.TextAlign = ContentAlignment.MiddleCenter;&lt;br /&gt;
      label2.Font = label1.Font;&lt;br /&gt;
      label2.TextAlign = ContentAlignment.MiddleCenter;&lt;br /&gt;
      // This.Text is the text that will appear in the form&amp;quot;s&lt;br /&gt;
      // title bar.&lt;br /&gt;
//      this.Text = &amp;quot;My Clock&amp;quot;;&lt;br /&gt;
      // The following three lines set the timer to tick&lt;br /&gt;
      // every second (1000 milliseconds), start the timer and&lt;br /&gt;
      // write the initial time to the label box&lt;br /&gt;
      timer1.Interval = 1000;&lt;br /&gt;
      timer1.Start ();&lt;br /&gt;
      SetClock ();&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Clean up any resources being used.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    protected override void Dispose( bool disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if( disposing )&lt;br /&gt;
      {&lt;br /&gt;
        if (components != null) &lt;br /&gt;
        {&lt;br /&gt;
          components.Dispose();&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      base.Dispose( disposing );&lt;br /&gt;
    }&lt;br /&gt;
    #region Windows Form Designer generated code&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Required method for Designer support - do not modify&lt;br /&gt;
    /// the contents of this method with the code editor.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
      this.ruponents = new System.ruponentModel.Container();&lt;br /&gt;
      this.timer1 = new System.Windows.Forms.Timer(this.ruponents);&lt;br /&gt;
      this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // timer1&lt;br /&gt;
      // &lt;br /&gt;
      this.timer1.Tick += new System.EventHandler(this.timer1_Tick);&lt;br /&gt;
      // &lt;br /&gt;
      // label1&lt;br /&gt;
      // &lt;br /&gt;
      this.label1.Font = new System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));&lt;br /&gt;
      this.label1.Location = new System.Drawing.Point(24, 56);&lt;br /&gt;
      this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
      this.label1.Size = new System.Drawing.Size(248, 48);&lt;br /&gt;
      this.label1.TabIndex = 0;&lt;br /&gt;
      this.label1.Text = &amp;quot;label1&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // label2&lt;br /&gt;
      // &lt;br /&gt;
      this.label2.Font = new System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));&lt;br /&gt;
      this.label2.Location = new System.Drawing.Point(24, 136);&lt;br /&gt;
      this.label2.Name = &amp;quot;label2&amp;quot;;&lt;br /&gt;
      this.label2.Size = new System.Drawing.Size(248, 48);&lt;br /&gt;
      this.label2.TabIndex = 1;&lt;br /&gt;
      this.label2.Text = &amp;quot;label2&amp;quot;;&lt;br /&gt;
      // &lt;br /&gt;
      // ClockForm&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(292, 272);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                      this.label2,&lt;br /&gt;
                                      this.label1});&lt;br /&gt;
      this.Name = &amp;quot;ClockForm&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;ClockForm&amp;quot;;&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    #endregion&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// The main entry point for the application.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new ClockForm());&lt;br /&gt;
    }&lt;br /&gt;
    private void timer1_Tick(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      SetClock ();&lt;br /&gt;
    }&lt;br /&gt;
    protected void SetClock ()&lt;br /&gt;
    {&lt;br /&gt;
      string str = DateTime.Now.ToString();&lt;br /&gt;
      int index = str.IndexOf (&amp;quot; &amp;quot;);&lt;br /&gt;
      label1.Text = str.Substring (index + 1);&lt;br /&gt;
      label2.Text = str.Substring (0, index);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>