public static void CurrencySetupFormOpen(Args _args)
        {
            //Curreny will use runtime Master - Details form
            var parms = new MyEditor.MasterDetailsParm()
            {
                MasterClass    = typeof(CurrencyPair),
                MasterKeyName  = "LineId",
                Details        = typeof(CurrencyPairExchangeRate),
                DetailsKeyName = "CurrencyPair",
                KeyType        = KeyTypeEnum.Object
            };

            _args.ParmObject = parms;
            MasterDetailsForm frm = new MasterDetailsForm(_args)
            {
                MdiParent = MdiParentForm, WindowState = FormWindowState.Maximized
            };

            frm.Show();
        }
        public static void FiscalCalenderYearFormOpen(Args _args)
        {
            //Curreny will use runtime Master - Details form
            var parms = new MyEditor.MasterDetailsParm()
            {
                MasterClass    = typeof(FiscalCalenderYear),
                MasterKeyName  = "LineId",
                Details        = typeof(FiscalCalenderPeriod),
                DetailsKeyName = "FiscalCalenderYear",
                KeyType        = KeyTypeEnum.Object
            };

            _args.ParmObject = parms;
            MasterDetailsForm frm = new MasterDetailsForm(_args)
            {
                MdiParent = MdiParentForm, WindowState = FormWindowState.Maximized
            };

            frm.Show();
        }
        public static void CityFormOpen(Args _args)
        {
            //Curreny will use runtime Master - Details form
            var parms = new MyEditor.MasterDetailsParm()
            {
                MasterClass       = typeof(Province),
                MasterKeyName     = "LineId",
                Details           = typeof(City),
                DetailsKeyName    = "Province",
                KeyType           = KeyTypeEnum.Object,
                MasterGVEditMode  = CoreLib.MyEnums.GridViewEditMode.SimpleEdit,
                DetailsGVEditMode = CoreLib.MyEnums.GridViewEditMode.FormEdit
            };

            _args.ParmObject = parms;
            MasterDetailsForm frm = new MasterDetailsForm(_args)
            {
                MdiParent = MdiParentForm, WindowState = FormWindowState.Maximized
            };

            frm.Show();
        }