コード例 #1
0
        private void MainMenu_Load(object sender, EventArgs e)
        {
            WindowState = FormWindowState.Maximized;

            if (AppSettingUserDef.TextisExist())
            {
                if (!AppSettingUserDef.isValidCSText())
                {
                    UpdateConnection updateconnection = new UpdateConnection();
                    updateconnection.Show();
                }
            }
            else
            {
                AppSettingUserDef.createCSText();
                UpdateConnection updateconnection = new UpdateConnection();
                updateconnection.Show();
            }
            InitMyProgram initmp = new InitMyProgram();

            try
            {
                List <Analyse_Lists_Frame> AnalyseTable = new List <Analyse_Lists_Frame>();  // For database select pupose
                Connections ss = new Connections();
                ss.loadAnalyseTableInfo("select * from analyse_lists", AnalyseTable);

                for (int i = 0; i < AnalyseTable.Count; i++)
                {
                    ListViewItem lvl = new ListViewItem(AnalyseTable[i].getStock_Table_Name());
                    lvl.SubItems.Add(AnalyseTable[i].getStock_Symbol());
                    lvl.SubItems.Add(AnalyseTable[i].getStarting_Date_().ToShortDateString());
                    lvl.SubItems.Add(AnalyseTable[i].getLast_Date_().ToShortDateString());
                    listView3.Items.Add(lvl);
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Ridi");
            }


            //TopMost = true;
            //FormBorderStyle = FormBorderStyle.None;
        }
コード例 #2
0
        private void updateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UpdateConnection UC = new UpdateConnection();

            UC.Show();
        }