Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DicOutsideEmp frm = new DicOutsideEmp();
            frm.Show();

            //MessageBox.Show(DB.ApplicationDataMappers.LevelsOfRiskDM.GetAllIDs().Count.ToString());
            //DB.ApplicationMap.LevelsOfRisk[-1] = new Classes.LevelOfRisk("qwertyu");
            //MessageBox.Show(DB.ApplicationMap.LevelsOfRisk[16].Name);

            /*DB.ApplicationDataMappers.LevelsOfRiskDM.Insert(new Classes.LevelOfRisk(Guid.NewGuid().ToString()));
            int ID = DB.ApplicationDataMappers.LevelsOfRiskDM.Insert(new Classes.LevelOfRisk(Guid.NewGuid().ToString()));
            DB.ApplicationDataMappers.LevelsOfRiskDM.Insert(new Classes.LevelOfRisk(Guid.NewGuid().ToString()));
            DB.ApplicationDataMappers.LevelsOfRiskDM.Insert(new Classes.LevelOfRisk(Guid.NewGuid().ToString()));
            DB.ApplicationDataMappers.LevelsOfRiskDM.Insert(new Classes.LevelOfRisk(Guid.NewGuid().ToString()));

            Classes.Entity en = DB.ApplicationMap.LevelsOfRisk[ID];
            DB.ApplicationMap.LevelsOfRisk.Delete(en as Classes.LevelOfRisk);*/

            /*tbl_Levels_of_RiskTableAdapter _adapter = new tbl_Levels_of_RiskTableAdapter();
            MessageBox.Show(DB.ApplicationMap.LevelsOfRisk[1].Name);
            MessageBox.Show( _adapter.Update("123", 2).ToString());
            MessageBox.Show(DB.ApplicationMap.LevelsOfRisk[1].Name);*/
        }
Esempio n. 2
0
 private void должностиToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DicOutsideEmp frm = new DicOutsideEmp();
     frm.ShowDialog();
 }