Esempio n. 1
0
        public static bool Execute(IWin32Window owner, out short year, out byte month)
        {
            using (var form = new NewPeriodForm())
            {
                form.Initialize();
                if (form.ShowDialog(owner) == DialogResult.OK)
                {
                    year  = form.Year;
                    month = form.Month;

                    return(true);
                }
            }

            year  = 0;
            month = 0;
            return(false);
        }