コード例 #1
0
 private void ClockWindow_Load(object sender, EventArgs e)
 {
     Int32Converter i32c = new Int32Converter();
     h.Text = i32c.ConvertToString(DateTime.Now.Hour);
     m.Text = i32c.ConvertToString(DateTime.Now.Minute);
     timer1.Start();
 }
コード例 #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     Int32Converter i32c = new Int32Converter();
     h.Text = i32c.ConvertToString(DateTime.Now.Hour);
     m.Text = i32c.ConvertToString(DateTime.Now.Minute);
 }
コード例 #3
0
		private void WindowConfiguration_Load(object sender, System.EventArgs e)
		{
			Int32Converter converter = new Int32Converter();

			textBox1.Text  = (String)converter.ConvertToString( UniformAlgorithm.DefaultLevelsR );
			textBox2.Text  = (String)converter.ConvertToString( UniformAlgorithm.DefaultLevelsG );
			textBox3.Text  = (String)converter.ConvertToString( UniformAlgorithm.DefaultLevelsB );

			textBox4.Text  = (String)converter.ConvertToString( PopularityAlgorithm.DefaultNumColors );

			textBox5.Text  = (String)converter.ConvertToString( OctreeAlgorithm.DefaultMaxColors    );
			textBox6.Text  = (String)converter.ConvertToString( OctreeAlgorithm.DefaultMaxColorBits );

			textBox7.Text  = (String)converter.ConvertToString( ClusterAlgorithm.DefaultNumColors );

			textBox8.Text  = (String)converter.ConvertToString( AdjustableAlgorithm.DefaultNumColors );
			textBox9.Text  = (String)converter.ConvertToString( AdjustableAlgorithm.DefaultWP        );
			textBox10.Text = (String)converter.ConvertToString( AdjustableAlgorithm.DefaultWD        );		
		}