Exemplo n.º 1
0
 private void ButtonForward_Click(object sender, RoutedEventArgs e)
 {
     this.m_FinalDate      = this.m_FinalDate.AddDays(1);
     this.m_SimulationList = SimulationList.GetList(this.m_FinalDate);
     this.NotifyPropertyChanged("SimulationList");
     this.NotifyPropertyChanged("FinalDate");
 }
Exemplo n.º 2
0
        public SimulationDialog()
        {
            this.m_InsuranceMapCollection = Business.Billing.Model.InsuranceMapCollection.GetCollection();
            this.m_FinalDate      = DateTime.Today;
            this.m_SimulationList = SimulationList.GetList(this.m_FinalDate);

            InitializeComponent();
            this.DataContext = this;
        }
Exemplo n.º 3
0
        private static SimulationList BuildList(MySqlCommand cmd)
        {
            SimulationList result = new SimulationList();

            using (MySqlConnection cn = new MySqlConnection(YellowstonePathology.Properties.Settings.Default.CurrentConnectionString))
            {
                cn.Open();
                cmd.Connection = cn;
                using (MySqlDataReader dr = cmd.ExecuteReader())
                {
                    while (dr.Read())
                    {
                        SimulationListItem item = new SimulationListItem();
                        YellowstonePathology.Business.Persistence.SqlDataReaderPropertyWriter sqlDataReaderPropertyWriter = new Business.Persistence.SqlDataReaderPropertyWriter(item, dr);
                        sqlDataReaderPropertyWriter.WriteProperties();
                        result.Add(item);
                    }
                }
            }
            return(result);
        }