using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using MercatorApi;
using MercatorController;
using MercatorUi;

namespace Mercator.Ribbon.ButtonsCodes
{
    public static class Script
    {

        public static void Exec(DevComponents.DotNetBar.ButtonItem clickedButtonItem)
        {
            // enter your customized code here
            MercatorUi._Dialogs.DialogAskComboRet ret = MercatorUi.Dialogs.AskDepot("Herbevoorrading voor welk depot ?");
            if (ret == null)
                return;

            MercatorUi.Forms.Gescom.GescomDialogs.GescomAskRestock.GescomAskRestockRet r = new MercatorUi.Forms.Gescom.GescomDialogs.GescomAskRestock.GescomAskRestockRet(
                false, false, false, "", DateTime.MinValue, DateTime.MinValue, false,
                ret.Id,
                "", "", null);

            MercatorUi.Forms.Gescom.GescomRestockForm.ShowStatic(r);
        }
    }
}