Example #1
0
 public FmLevel(DataService service, FmDb par)
 {
     InitializeComponent();
     StartPosition = FormStartPosition.CenterParent;
     this.service  = service;
     parent        = par;
 }
Example #2
0
 public Level(DaoLevel level, DataService service, FmDb par)
 {
     InitializeComponent();
     this.level   = level;
     this.service = service;
     parent       = par;
     labName.Text = level.name;
     labInfo.Text = level.info;
 }
Example #3
0
 public Platform(DaoPlatform pltfm, DataService service, FmDb par)
 {
     InitializeComponent();
     this.pltfm   = pltfm;
     this.service = service;
     parent       = par;
     labName.Text = pltfm.name;
     labInfo.Text = pltfm.info;
 }
Example #4
0
        public Depart(DaoDepartment depart, DataService service, FmDb par)
        {
            InitializeComponent();
            this.depart  = depart;
            this.service = service;
            parent       = par;

            labName.Text = depart.name;
            labInfo.Text = depart.info;
        }
Example #5
0
        public Team(DaoTeam team, DataService service, FmDb par)
        {
            InitializeComponent();
            this.team    = team;
            this.service = service;
            parent       = par;

            labName.Text   = team.name;
            labDepart.Text = team.depart;
            labInfo.Text   = team.info;
        }
Example #6
0
        public Product(DaoProduct pdct, DataService service, FmDb par)
        {
            InitializeComponent();
            this.pdct    = pdct;
            this.service = service;
            parent       = par;

            labName.Text  = pdct.name;
            labPltfm.Text = pdct.pltfm;
            labInfo.Text  = pdct.info;
        }
Example #7
0
        public Trial(DaoTrial trial, DataService service, FmDb par)
        {
            InitializeComponent();
            this.trial   = trial;
            this.service = service;
            parent       = par;

            labPltfm.Text     = trial.pltfm;
            labPdct.Text      = trial.pdct;
            labDate.Text      = trial.date;
            labActivator.Text = trial.activator;
            labOperator.Text  = trial.operater;
            labInfo.Text      = trial.info;
        }
Example #8
0
        public User(DaoUser user, DataService service, FmDb par)
        {
            InitializeComponent();
            this.user    = user;
            this.service = service;
            parent       = par;

            labUid.Text  = user.uid;
            labName.Text = user.name;
            labTeam.Text = user.team;
            labTel.Text  = user.tel;
            labLev.Text  = user.level;
            labInfo.Text = user.info;
        }
Example #9
0
        public FmPdct(DataService service, FmDb par)
        {
            InitializeComponent();
            StartPosition = FormStartPosition.CenterParent;
            this.service  = service;
            parent        = par;

            List <string> pltfms = service.getPltfmStr();

            foreach (string pltfm in pltfms)
            {
                combPltfm.Items.Add(pltfm);
            }
            combPltfm.SelectedIndex = 0;
            combPltfm.Text          = pltfms[0];
        }
Example #10
0
        public FmTeam(DataService service, FmDb par)
        {
            InitializeComponent();
            StartPosition = FormStartPosition.CenterParent;
            this.service  = service;
            parent        = par;

            List <string> departs = service.getDepartStr();

            combDepart.Items.Clear();
            foreach (string de in departs)
            {
                combDepart.Items.Add(de);
            }
            combDepart.SelectedIndex = 0;
            combDepart.Text          = departs[0];
        }
Example #11
0
        public FmUser(DataService service, FmDb par)
        {
            InitializeComponent();
            StartPosition = FormStartPosition.CenterParent;
            this.service  = service;
            parent        = par;

            List <string> departs = service.getDepartStr();

            combDepart.Items.Clear();
            foreach (string de in departs)
            {
                combDepart.Items.Add(de);
            }
            combDepart.SelectedIndex = 0;
            combDepart.Text          = departs[0];

            List <string> teams = service.getTeamStr(departs[0]);

            foreach (string t in teams)
            {
                combTeam.Items.Add(t);
            }
            if (teams != null && teams.Count > 0)
            {
                combTeam.SelectedIndex = 0;
                combTeam.Text          = teams[0];
            }

            List <string> levs = service.getLevelStr();

            foreach (string lv in levs)
            {
                combLevel.Items.Add(lv);
            }
            if (levs != null && levs.Count > 0)
            {
                combLevel.SelectedIndex = 0;
                combLevel.Text          = levs[0];
            }
        }