Пример #1
0
        void HandleButtonClicked(object sender, EventArgs e)
        {
            if (calendwnd == null)
            {
                calendwnd         = new CalendarWindow();
                calendwnd.Hidden += HandleCalendwndHidden;
            }
            calendwnd.Date = Date;

            int x, y;

            ParentWindow.GetPosition(out x, out y);
            x += this.Allocation.Left;
            y += this.Allocation.Top + this.Allocation.Height;
            calendwnd.Move(x, y);
            calendwnd.Modal = true;
            calendwnd.Show();
        }
Пример #2
0
        void HandleButtonClicked(object sender, EventArgs e)
        {
            if (calendwnd == null) {
                calendwnd = new CalendarWindow ();
                calendwnd.Hidden += HandleCalendwndHidden;
            }
            calendwnd.Date = Date;

            int x, y;
            ParentWindow.GetPosition( out x, out y );
            x += this.Allocation.Left;
            y += this.Allocation.Top + this.Allocation.Height;
            calendwnd.Move (x, y);
            calendwnd.Modal = true;
            calendwnd.Show ();
        }