Results 1 to 3 of 3

Thread: Guide: Use the internals of OcBible!

Threaded View

  1. #1
    Xtreme Member
    Join Date
    May 2005
    Location
    With my destiny :)
    Posts
    345

    Guide: Use the internals of OcBible!

    Here at Aoaforums I created a thread.
    I do not want to repeat the same posts.
    You can get the most from OcBible.
    Post here questions etc...
    Always there at Aoaforums you can download the dlls etc...

    AMD critical temperature
    This code allows you to run a form like AMD critical temperature estimator.

    Code:
    using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;
    
    namespace AMD_critical_temperature
    {
    	public class Form1 : System.Windows.Forms.Form
    	{
    		private System.ComponentModel.Container components = null;
    		private Functions OcBible;  // Add reference for Functions.dll
    
    		public Form1()
    		{
    			InitializeComponent();
    			OcBible=new Functions();
    		}
    
    		protected override void Dispose( bool disposing )
    		{
    			if( disposing )
    			{
    				if (components != null) 
    				{
    					components.Dispose();
    				}
    			}
    			base.Dispose( disposing );
    		}
    
    		#region Windows Form Designer generated code
    		private void InitializeComponent()
    		{
    			// 
    			// Form1
    			// 
    			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    			this.ClientSize = new System.Drawing.Size(292, 266);
    			this.Name = "Form1";
    			this.Text = "Form1";
    			this.Load += new System.EventHandler(this.Form1_Load);
    		}
    		#endregion
    
    		[STAThread]
    		static void Main() 
    		{
    			Application.EnableVisualStyles();
    			Application.Run(new Form1());
    		}
    
    		private void Form1_Load(object sender, System.EventArgs e)
    		{
    			double critical_temp=OcBible.AMD_critical_temperature(2200,2180,2150,35,42,48);
    			MessageBox.Show(critical_temp.ToString(System.Globalization.NumberFormatInfo.InvariantInfo) + " Celsius.",
    				"AMD critical temp is",MessageBoxButtons.OK,MessageBoxIcon.Information);
    			this.Close();
    		}
    	}
    }
    Last edited by MrSeanKon; 11-15-2006 at 03:03 AM.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •