コード例 #1
0
ファイル: Form1.cs プロジェクト: AhmedPho/ArabicParser
        //DataSet1.TagsDataTable MyTagsDataTable;
        public Form1()
        {
            listGrammers = new List<GrammerOp>();
            listTag = new List<TagOp>();

            MyTagsTableAdapter = new DataSet1TableAdapters.TagsTableAdapter();
            MyWordsTableAdapter = new DataSet1TableAdapters.WordsTableAdapter();
            MyGrammersTableAdapter = new DataSet1TableAdapters.GrammersTableAdapter();
            MyGrammersTableAdapter = new DataSet1TableAdapters.GrammersTableAdapter();
            DataSet1.GrammersDataTable MyGrammersDataTable = MyGrammersTableAdapter.GetData();
            DataSet1.TagsDataTable MyTagsDataTable = MyTagsTableAdapter.GetData();
            int IDsOfGrammers = 0;
            foreach (DataSet1.GrammersRow dr in MyGrammersDataTable.Rows)
            {
                listGrammers.Add(new GrammerOp(dr.Grammer, dr.IsMaster, IDsOfGrammers));
                IDsOfGrammers++;
            }
            foreach (DataSet1.TagsRow dr in MyTagsDataTable)
            {
                listTag.Add(new TagOp(dr.Tag,dr.IsTerminal));
            }

            InitializeComponent();
        }
コード例 #2
0
ファイル: Manager.aspx.cs プロジェクト: AhmedPho/NLP
 protected void Page_Load(object sender, EventArgs e)
 {
     MyTagsTableAdapter = new DataSet1TableAdapters.TagsTableAdapter();
     MyWordsTableAdapter = new DataSet1TableAdapters.WordsTableAdapter();
     MyGrammersTableAdapter = new DataSet1TableAdapters.GrammersTableAdapter();
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: AhmedPho/ArabicParser
 private void button2_Click(object sender, EventArgs e)
 {
     string[] grammers = textBox3.Text.Split(',');
     DataSet1TableAdapters.WordsTableAdapter WordsTableAdapter1 = new DataSet1TableAdapters.WordsTableAdapter();
     for (int i = 0; i < grammers.Length; i++)
     {
         if (grammers[i] != ",")
         {
             WordsTableAdapter1.InsertQuery1(grammers[i]);
         }
     }
 }