Ejemplo n.º 1
0
        private void Form1_Activated(object sender, EventArgs e)
        {
            //Console.WriteLine("active");

            if (Program.saveEventCheck)
            {
                dl = new DataSaveLoad();
                keywordAnalysis = new KeywordAnalysis();

                dataObjectList = dl.LoadData();

                for (int i = 0; i < dataObjectList.Count; i++)
                {
                    keywordAnalysis.AddData(i, dataObjectList[i].listIndex, dataObjectList[i].kewordTexts);
                }

                Program.saveEventCheck = false;
            }
        }
Ejemplo n.º 2
0
        public Form3()
        {
            InitializeComponent();

            dataSaveLoad = new DataSaveLoad();

            dataObjectList = dataSaveLoad.LoadData();

            tabControl.Selecting += new TabControlCancelEventHandler(TabControl_Selecting);

            firstPage = new TabPage(dataObjectList[0].imoticonName);
            tabControl.TabPages.Add(firstPage);

            for (int i = 1; i < dataObjectList.Count; i++)
            {
                TabPage tabPage = new TabPage(dataObjectList[i].imoticonName);
                tabControl.TabPages.Add(tabPage);
            }
        }