Beispiel #1
0
    public string generateSpellDescription(DetailMode mode, int level)
    {
        string fullDesc = description;

        if (ultimate)
        {
            fullDesc = "[Ultimate]  " + fullDesc;
        }

        switch (mode)
        {
        case DetailMode.SIMPLE:
            fullDesc = SetupDescriptionSimple(fullDesc, level);
            break;

        case DetailMode.LEVELUP:
            fullDesc = SetupDescriptionLevelup(fullDesc, level);
            break;

        case DetailMode.DESC:
            fullDesc = SetupDescriptionDesc(fullDesc);
            break;

        case DetailMode.FULL:
            fullDesc = SetupDescriptionFull(fullDesc, level);
            break;
        }

        return(fullDesc);
    }
        public CustomerDetail(DetailMode mode,
                              Dashboard parent,
                              AddressRepository addressRepo,
                              CustomerRepository custRepo,
                              Customer customerToModify = null)
        {
            CustomerRepo = custRepo;
            AddressRepo  = addressRepo;

            Mode      = mode;
            Dashboard = parent;
            if (customerToModify != null)
            {
                CustomerToModify = customerToModify;
                AddressToModify  = AddressRepo.GetAddress(customerToModify.AddressId);
            }

            Cities = AddressRepo.GetAllCities();

            InitializeComponent();

            lblError.Visible      = false;
            cmbCity.ValueMember   = "Id";
            cmbCity.DisplayMember = "Name";
            cmbCity.DataSource    = Cities;
        }
Beispiel #3
0
        public AppointmentDetail(DetailMode mode,
                                 Dashboard parent,
                                 AppointmentRepository aptRepo,
                                 CustomerRepository custRepo,
                                 AddressRepository addressRepo,
                                 User loggedInUser,
                                 Appointment appointmentToModify = null)
        {
            LoggedInUser        = loggedInUser;
            AppointmentRepo     = aptRepo;
            CustomerRepo        = custRepo;
            AddressRepo         = addressRepo;
            Mode                = mode;
            Dashboard           = parent;
            AppointmentToModify = appointmentToModify;
            Customers           = CustomerRepo.GetAllCustomers();
            InitializeComponent();

            cmbCustomer.ValueMember   = "Id";
            cmbCustomer.DisplayMember = "CustomerName";
            cmbCustomer.DataSource    = Customers;

            dtpBegin.Format       = DateTimePickerFormat.Custom;
            dtpBegin.CustomFormat = "MM/dd/yyyy hh:mm tt";

            dtpEnd.Format       = DateTimePickerFormat.Custom;
            dtpEnd.CustomFormat = "MM/dd/yyyy hh:mm tt";

            lblError.Visible = false;
        }
 static public void ShowFavList()
 {
     mode = DetailMode.DM_FAVOURITE;
     pGlobal.HeadbarButton.SetActive(false);
     pGlobal.ShelfDetail.gameObject.SetActive(false);
     pGlobal.FullListDetail.gameObject.SetActive(false);
     pGlobal.FavListDetail.gameObject.SetActive(true);
     pGlobal.FooterBar.gameObject.SetActive(false);
 }
Beispiel #5
0
 public ProductDetail(DetailMode mode, MainForm parent, Product productToModify = null)
 {
     Mode            = mode;
     MainForm        = parent;
     ProductToModify = productToModify;
     AssociatedParts = (productToModify != null) ? ProductToModify.AssociatedParts : new BindingList <Part>();
     InitializeComponent();
     BindAllGrids();
 }
 void Start()
 {
     mDownloadTexList = new List <DownloadedTexture> ();
     ContentPageFile.downloadTextureList.Clear();
     ContentPageFile.downloadingList.Clear();
     mode = DetailMode.DM_SHELF;
     xmlData.SetLink(UserCommonData.GetURL() + GetLinkIndex((int)PageDetailGlobal.type - 1));
     xmlData.postDownloaded += FinishDownload;
     subMenu.CreateSubMenu(GetGroupStruct());
     filter.CreateSubMenu();
     DownloadNewLink();
 }
Beispiel #7
0
 private void SetRecordMode(Entity entity, DetailMode mode, Dictionary <string, object> initialValues)
 {
     CurrentEntity      = entity;
     CurrentViewType    = ViewType.Detail;
     DrmRecordInputData = null;
     DrmRecordInputData = new DrmRecordInputData()
     {
         Entities            = Entities,
         Entity              = entity,
         GenericEventManager = GenericEventManager,
         GenericManager      = GenericManager,
         InitialValues       = initialValues,
         Mode            = mode,
         WpfEventManager = WpfEventManager,
         Relationships   = Relationships
     };
 }
Beispiel #8
0
        public PartDetail(DetailMode mode, MainForm parent, Part partToModify = null)
        {
            Mode         = mode;
            MainForm     = parent;
            PartToModify = partToModify;
            InitializeComponent();

            if (partToModify != null)
            {
                if (PartToModify.GetType() == typeof(InhousePart))
                {
                    Source                = PartSource.Inhouse;
                    rdbInHouse.Checked    = true;
                    rdbOutsourced.Checked = false;
                }

                if (PartToModify.GetType() == typeof(OutsourcedPart))
                {
                    Source                = PartSource.Outsourced;
                    rdbInHouse.Checked    = false;
                    rdbOutsourced.Checked = true;
                }
            }
        }
Beispiel #9
0
 private void SetMode(DetailMode data)
 {
     _viewModel.Mode = data;
 }