Beispiel #1
0
        public AddEvent(CalendarForm calendarForm, DateTime dateTime)
        {
            this.calendarForm = calendarForm;
            SquareDate        = dateTime;
            InitializeComponent();

            //endDate.Enabled = true;
            startDate.Value = SquareDate.Date;
            endDate.Value   = SquareDate.Date;
            //endDate.Enabled = false;
        }
        public void Init()
        {
            //the true one
            var form = new CalendarForm();

            form.ShowDialog();



            ///AddEvent ad = new AddEvent();
            // ad.TopLevel = false;
            // ad.Show();
            //  ad.Visible = true;

            //PredictionForm pf = new PredictionForm();

            //pf.TopLevel = false;

            //PredictionForm f = new PredictionForm();
            //f.TopLevel = false;


            //TableLayoutPanel panel = new TableLayoutPanel();
            //panel.ColumnCount = 2;
            //panel.RowCount = 1;

            //panel.Controls.Add(pf,0,0);
            //panel.Controls.Add(f,1,0);
            //panel.ClientSize = new System.Drawing.Size(1000, 1000);
            //panel.Visible = true;
            //panel.Show();



            //Test();

            //debugging
            //var form = new AddEvent();
            //form.ShowDialog();
            //var form = new RecurringForm();

            //var form = new PredictionForm();
            //form.ShowDialog();
        }
Beispiel #3
0
 public AddEvent(CalendarForm calendarForm)
 {
     this.calendarForm = calendarForm;
     InitializeComponent();
 }