protected void OnOpenOrder(object sender, EventArgs arg)
    {
        CalendarItem item     = (CalendarItem)sender;
        OrderDlg     OrderWin = new OrderDlg(item.id);

        OrderWin.Show();
        if ((ResponseType)OrderWin.Run() == ResponseType.Ok)
        {
            item.Calendar.RefreshOrders();
        }
        OrderWin.Destroy();
    }
    protected void OnNewOrder(object sender, NewOrderEventArgs arg)
    {
        OrderDlg OrderWin = new OrderDlg(arg.PointNumber, arg.CalendarNumber, arg.OrderType, arg.Date, arg.Hour);

        OrderWin.Show();
        int result = OrderWin.Run();

        if (result == (int)ResponseType.Ok)
        {
            ((OrdersCalendar)sender).RefreshOrders();
        }
        OrderWin.Destroy();
    }