示例#1
0
 public FResume()
 {
     InitializeComponent();
     cbAction.DataSource = SqlAction.List();
     cbWhat.DataSource   = TypeObject.List();
     EnableButtons();
 }
示例#2
0
        private void FillTypeObject()
        {
            lstTypeObject.Items.Clear();
            foreach (var typObj in TypeObject.List().Where(x => x.TypeObjectId > 0).OrderBy(x => x.TypeObjectPrestentOrder))
            {
                lstTypeObject.Items.Add(typObj);
            }

            ChangeAllCecks(true);
        }
示例#3
0
        public Form1()
        {
            InitializeComponent();

            fullFileName = Path.Combine(Application.StartupPath, "Jeux2Test.Json");

            datas    = RegexFoundingUnitTest.Load(fullFileName).ToList();
            isChange = false;

            lblNo.Visible       = false;
            cbAction.DataSource = SqlAction.List().Where(x => x.SqlActionId > 1).ToList();
            cbWhat.DataSource   = TypeObject.List().Where(x => x.TypeObjectId >= 0).ToList();
            lblInfos.Text       = string.Empty;
            Choix_SelectedIndexChanged(null, null);
            GereBoutton();
        }
 public TypeObject GetWhat() => TypeObject.List().FirstOrDefault(x => x.TypeObjectId == TypeObjectId);