示例#1
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            if (Controller != null)
            {
                GregorianDateTime dt = StartDate;
                if (dt != null)
                {
                    InputStartDate = StartDate;
                    InputEndDate   = EndDate;
                    if (OnPeriodSelected != null)
                    {
                        OnPeriodSelected(this, e);
                    }
                }
                else
                {
                    StartDatePanel d = new StartDatePanel();
                    d.CustomTitle      = "Enter Start Date";
                    d.EarthLocation    = this.EarthLocation;
                    d.GregorianTime    = InputStartDate;
                    d.OnStartDateDone += new TBButtonPressed(d_OnStartDateDone);
                    StartDatePanelController dc = new StartDatePanelController(d);
                    dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Center);
                }
            }

            Controller.RemoveFromContainer();
        }
示例#2
0
        private void onDateRangeClick(object sender, EventArgs e)
        {
            StartDatePanel d = new StartDatePanel();

            d.CustomTitle      = "Enter Date";
            d.EarthLocation    = GCGlobal.myLocation.GetEarthData();
            d.OnStartDateDone += new TBButtonPressed(onDateRangeClickDone);
            d.GregorianTime    = selectedDate;

            StartDatePanelController dlg13b = new StartDatePanelController(d);

            dlg13b.ShowInContainer(Controller.ViewContainer, GVControlAlign.Center);
        }
示例#3
0
        private void d_OnStartDateDone(object sender, EventArgs e)
        {
            if (sender is GregorianDateTime)
            {
                InputStartDate = sender as GregorianDateTime;

                // display dialog for end date
                StartDatePanel d = new StartDatePanel();
                d.CustomTitle      = "Enter End Date";
                d.EarthLocation    = this.EarthLocation;
                d.GregorianTime    = InputEndDate;
                d.OnStartDateDone += new TBButtonPressed(d_OnEndDateDone);
                StartDatePanelController dc = new StartDatePanelController(d);
                dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Center);
            }
        }