public static void ShowFormPools() { if (FormPoolInstance == null) { FormPoolInstance = new FormPool(); FormPoolInstance.Show(); } }
public FormMain() { InitializeComponent(); this.Text = Application.ProductName + " [" + Application.ProductVersion + "]"; FormPoolInstance = null; FormNewOrderInstance = null; TimerRefresh = new Timer(); TimerRefresh.Interval = 500; TimerRefresh.Tick += new EventHandler(TimerRefresh_Tick); TimerRefresh.Start(); BalanceRefresh = new Timer(); BalanceRefresh.Interval = 30 * 1000; BalanceRefresh.Tick += new EventHandler(BalanceRefresh_Tick); BalanceRefresh.Start(); }