Ejemplo n.º 1
0
        private void RadioButton_CheckedChanged(object sender, EventArgs e)
        {
            var radioButton = (MetroRadioButton)sender;

            MonthlyAllocation = FundAllocation.MonthlyAllocations.Find(r => r.ViewName == radioButton.Name);

            ShowAllocations(MonthlyAllocation.Statements);
        }
Ejemplo n.º 2
0
        public NewStatement()
        {
            InitializeComponent();
            MonthlyAllocation = new MonthlyAllocation();
            var info = new DateTimeFormatInfo();

            MonthBox.Items.AddRange(info.MonthNames.ToArray <Object>());
            MonthBox.Items.RemoveAt(MonthBox.Items.Count - 1);
            foreach (int y in Enumerable.Range(2017, 2055))
            {
                YearBox.Items.Add(y.ToString());
            }

            MonthBox.SelectedIndex = DateTime.Now.Month - 1;
            YearBox.Text           = DateTime.Now.Year.ToString();
        }