Ejemplo n.º 1
0
        private void dataGridProperties_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            ViewingsCalendar.SetDate(DateTime.Today);
            Variables.SelectedProp = dataGridProperties.SelectedRows[0].Cells[0].Value.ToString();
            string tempSelectedPropString = Variables.SelectedProp;
            int    tempSelectedProp       = Int32.Parse(tempSelectedPropString);

            fillDataGridWithViewings(tempSelectedProp, Variables.SelectedDate);
        }
Ejemplo n.º 2
0
        private void lstBoxProperties_SelectedIndexChanged(object sender, EventArgs e)
        {
            ViewingsCalendar.SetDate(DateTime.Today);
            Variables.SelectedProp = lstBoxProperties.SelectedValue.ToString();

            string tempSelectedPropString = Variables.SelectedProp;

            Console.WriteLine(Variables.SelectedProp);
            // Comment for self - get date instead of prop like in lstViewings

            //tempSelectedPropInt = System.Convert.ToInt32(Variables.SelectedProp);
        }