Esempio n. 1
0
        private void BtnValider_Click(object sender, EventArgs e)
        {
            DateTime LaDate = new DateTime(CalendarJalon.SelectionRange.Start.Year, CalendarJalon.SelectionRange.Start.Month, CalendarJalon.SelectionRange.Start.Day);

            if (TextBoxResponsable.Text != "")
            {
                int identifiant = SFactory.GetServiceResponsable().AddResposable(TextBoxResponsable.Text);
                SFactory.GetServiceJalon().AddJalon(TextboxLabel.Text, LaDate, identifiant);
            }
            else
            {
                SFactory.GetServiceJalon().AddJalon(TextboxLabel.Text, LaDate, (ResponsableProjet.SelectedItem as dynamic).value);
            }
        }
Esempio n. 2
0
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (tabControl1.SelectedTab.Name)
            {
            case "tabExigence":
                if (this.Tag != null)
                {
                    List <SBExigences> LesExigence = SFactory.GetServiceExigence().GetExigencesByProjet(this.Tag.ToString());

                    SourceExigence.DataSource = LesExigence;
                    GridExigence.DataSource   = SourceExigence;
                }

                break;

            case "tabJalon":

                if (this.Tag != null)
                {
                    List <SBJalon> LesJalons = SFactory.GetServiceJalon().GetJalons();

                    SourceJalon.DataSource = LesJalons;
                    GridJalon.DataSource   = SourceJalon;
                }
                break;

            case "tabTache":

                if (this.Tag != null)
                {
                    List <SBTache> LesTache = SFactory.GetServiceTache().GetTaches();

                    SourceTache.DataSource = LesTache;
                    GridTache.DataSource   = SourceTache;
                }
                break;
            }
        }