Пример #1
0
 public static new bool Show(ref LotType currentType, ref CommercialLotSubType currentCommercialSubType, ref ResidentialLotSubType currentResidentialSubType, ref string lotTypeName, Vector2 position, ModalDialog.PauseMode pauseMode, bool isHouseboatLot)
 {
     if (ModalDialog.EnableModalDialogs)
     {
         using (ChangeLotTypeDialogEx dialog = new ChangeLotTypeDialogEx(currentType, currentCommercialSubType, currentResidentialSubType, position, pauseMode, isHouseboatLot))
         {
             dialog.StartModal();
             currentType = dialog.mCurrentLotType;
             currentCommercialSubType  = dialog.mCurrentCommercialSubType;
             currentResidentialSubType = dialog.mCurrentResidentialSubType;
             lotTypeName = dialog.mLotTypeName;
             return(dialog.Result);
         }
     }
     return(false);
 }
Пример #2
0
 public static new bool Show(ref LotType currentType, ref CommercialLotSubType currentCommercialSubType, ref ResidentialLotSubType currentResidentialSubType, ref string lotTypeName, Vector2 position, ModalDialog.PauseMode pauseMode, bool isHouseboatLot)
 {
     if (ModalDialog.EnableModalDialogs)
     {
         using (ChangeLotTypeDialogEx dialog = new ChangeLotTypeDialogEx(currentType, currentCommercialSubType, currentResidentialSubType, position, pauseMode, isHouseboatLot))
         {
             dialog.StartModal();
             currentType = dialog.mCurrentLotType;
             currentCommercialSubType = dialog.mCurrentCommercialSubType;
             currentResidentialSubType = dialog.mCurrentResidentialSubType;
             lotTypeName = dialog.mLotTypeName;
             return dialog.Result;
         }
     }
     return false;
 }