Example #1
0
        private void MainForm_Closing(object sender, CancelEventArgs e)
        {
            int num1 = StockDB.RealtimeChangedCount;

            if ((num1 != 0) && (MessageBox.Show("Do you want to merge realtime data to historical database? Total:" + num1, "Confirm", MessageBoxButtons.YesNo) == DialogResult.Yes))
            {
                StockDB.MergeRealtime();
            }
        }