Пример #1
0
        internal PackageInfo ReadPackageInfo(XElement packageListInfoElement, ListMode listMode)
        {
            if (packageListInfoElement == null)
            {
                return(null);
            }

            PackageInfo packageInfo = new PackageInfo(packageListInfoElement)
            {
                PackageId      = packageListInfoElement.Element(XmlPackageId).Value,
                PackageVersion = packageListInfoElement.Element(XmlPackageVersion).Value
            };

            if (listMode == ListMode.Full)
            {
                // costs around 10ms more
                packageInfo.LockedByAction  = packageListInfoElement.Element(XmlLockedByAction).Value;
                packageInfo.LockedByProcess = packageListInfoElement.Element(XmlLockedByProcess).Value;
                packageInfo.Created         = DateTimeOffset.Parse(packageListInfoElement.Element(XmlCreated).Value);
                var lastUpdatedValue = packageListInfoElement.Element(XmlLastUpdated).Value;
                packageInfo.LastUpdated = string.IsNullOrEmpty(lastUpdatedValue) ? (DateTimeOffset?)null : DateTimeOffset.Parse(lastUpdatedValue);
            }
            ;

            return(packageInfo);
        }
    public List <StoreObjectReference> SortList(ListMode sortMode, List <StoreObjectReference> toSort)
    {
        switch (sortMode.mode)
        {
        case "Default":
        case "Name ABC":     // Name ABC is default here
            toSort.Sort(CompareStoreObject_NameABC);
            return(toSort);

        case "Name ZYX":
            toSort.Sort(CompareStoreObject_NameZYX);
            return(toSort);

        case "Function ABC":
            toSort.Sort(CompareStoreObject_FunctionABC);
            return(toSort);

        case "Function ZYX":
            toSort.Sort(CompareStoreObject_FunctionZYX);
            return(toSort);

        case "Low Price":
            toSort.Sort(CompareStoreObject_LowPrice);
            return(toSort);

        case "High Price":
            toSort.Sort(CompareStoreObject_HighPrice);
            return(toSort);
        }
        return(null);
    }
Пример #3
0
    public List <Order> SortOrderList(ListMode sortMode, List <Order> toSort)
    {
        switch (sortMode.mode)
        {
        case "Default":
        case "Name ABC":     // Name ABC is default here
            toSort.Sort(CompareOrderList_NameABC);
            return(toSort);

        case "Name ZYX":
            toSort.Sort(CompareOrderList_NameZYX);
            return(toSort);

        case "Vendor ABC":
            toSort.Sort(CompareOrderList_VendorNameABC);
            return(toSort);

        case "Vendor ZYX":
            toSort.Sort(CompareOrderList_VendorNameZYX);
            return(toSort);

        case "Smallest Delivery":
            toSort.Sort(CompareOrderList_SmallestOrder);
            return(toSort);

        case "Largest Delivery":
            toSort.Sort(CompareOrderList_LargestOrder);
            return(toSort);
        }
        return(toSort);
    }
Пример #4
0
 private void LoadList(ListMode mode)
 {
     switch (mode)
     {
         case ListMode.Permissions:
             grdList.DataSource = Admin.GetPermissionsAll().Select(x => x.PermissionName);
             break;
         case ListMode.Roles:
             grdList.DataSource = Admin.GetRolesAll().Select(x => x.RoleName);
             break;
         case ListMode.Users:
             break;
         case ListMode.Schools:
             grdList.DataSource = Admin.GetSchoolsAll().Select(x => x.Name);
             break;
         case ListMode.PricingModules:
             grdList.DataSource = Admin.GetPricingModules().Select(x => x.Name);
             break;
         case ListMode.Grades:
             grdList.DataSource = Admin.GetGradesAll().Select(x => x.DisplayText);
             break;
         case ListMode.Subjects:
             grdList.DataSource = Admin.GetSubjectsAll().Select(x => x.DisplayText);
             break;
         case ListMode.Periods:
             grdList.DataSource = Admin.GetPeriodsAll().Select(x => x.PeriodName);
             break;
         default:
             grdList.DataSource = null;
             break;
     }
     grdList.DataBind();
 }
Пример #5
0
 public GridList(ListMode mode = ListMode.None)
 {
     GridScrollHeight = 600;
     GridWidth = 500;
     GridMarginTop = 10;
     Mode = mode;
 }
Пример #6
0
        private static void writeDependencies(Solution solution, ListMode mode)
        {
            if (mode.Matches(ListMode.dependencies))
            {
                if (solution.Dependencies.Any())
                {
                    Console.WriteLine("  Dependencies");


                    var nugets = solution.NugetDependencies;
                    var local  = solution.LocalDependencies();
                    solution.Dependencies.Each(dep =>
                    {
                        var nuget = nugets.FirstOrDefault(x => x.Name == dep.Name);
                        var name  = dep.ToString();
                        if (dep.IsFloat() && local.Has(dep))
                        {
                            name = "{0},{1}".ToFormat(dep.Name, local.Get(dep).Version);
                        }


                        if (nuget != null)
                        {
                            name += " published by {0}".ToFormat(nuget.Publisher.Name);
                        }

                        Console.WriteLine("    * " + name);
                    });
                }
                else
                {
                    Console.WriteLine("  No dependencies.");
                }
            }
        }
Пример #7
0
        public static void NewList(int list, int mode)
        {
            if (!UseLists)
            {
                return;
            }

            ListMode m = (ListMode)0;

            switch (mode)
            {
            case COMPILE:
            {
                m = ListMode.Compile;
                break;
            }
            }

            if ((int)m == 0)
            {
                return;
            }

            GL.NewList(list, m);
        }
        private void RegistraValoreEnumerator(object obj, string key, object value)
        {
            ListMode listmode = ((dynamic)obj).PartFieldDefinition.Settings.GetModel <EnumerationFieldSettings>().ListMode;

            if (listmode != ListMode.Listbox && listmode != ListMode.Checkbox)
            {
                key = "Value";
            }
            var property = obj.GetType().GetProperty(key);

            if (property != null)
            {
                Type t = Nullable.GetUnderlyingType(property.PropertyType) ?? property.PropertyType;
                //   ListMode listmode = ((dynamic)obj).PartFieldDefinition.Settings.GetModel<EnumerationFieldSettings>().ListMode;
                if (listmode != ListMode.Listbox && listmode != ListMode.Checkbox)
                {
                    try {
                        if (((dynamic)value).Count == 1)
                        {
                            value = ((dynamic)value)[0];
                        }
                    } catch { }
                    RegistraValore(obj, key, value);
                }
                else
                {
                    if (t.Name == "String[]")   // caso di enumerationfield con multivalue
                    {
                        object safeValue = (value == null) ? null : ((List <object>)value).Select(x => x.ToString()).ToArray();
                        property.SetValue(obj, safeValue, null);
                    }
                }
            }
        }
Пример #9
0
    public List <Staff_s> SortStaffList(ListMode sortMode, List <Staff_s> toSort)
    {
        switch (sortMode.mode)
        {
        case "Default":
        case "Name ABC":     // Name ABC is default here
            toSort.Sort(CompareStaffList_NameABC);
            return(toSort);

        case "Name ZYX":
            toSort.Sort(CompareStaffList_NameZYX);
            return(toSort);

        case "Job ABC":
            toSort.Sort(CompareStaffList_JobABC);
            return(toSort);

        case "Job ZYX":
            toSort.Sort(CompareStaffList_JobZYX);
            return(toSort);

        case "Pay Rate":
            toSort.Sort(CompareStaffList_Pay);
            return(toSort);

        case "Happiness":
            toSort.Sort(CompareStaffList_Happiness);
            return(toSort);

        case "Work Experience":
            toSort.Sort(CompareStaffList_WorkExperience);
            return(toSort);
        }
        return(null);
    }
Пример #10
0
 public void FilterModeCallback(ListMode mode)
 {
     if (mode.mode == "All")
     {
         filters.Clear();
         filters.Add(mode);
         filterDropdown.CloseDropdown();
         filterDropdown.titleText.text = "All";
         CreateList();
         return;
     }
     else
     {
         if (filters.Count == 1)
         {
             if (filters[0].mode == "All")
             {
                 filters.Clear();
             }
         }
     }
     foreach (ListMode listMode in filters)
     {
         if (mode.mode == listMode.mode)
         {
             RemoveFilterMode(listMode);
             CreateList();
             return;
         }
     }
     AddFilterMode(mode);
     CreateList();
 }
Пример #11
0
 public void Begin(ListMode mode)
 {
     if (ID == -1)
     {
         ID = GL.GenLists(1);
     }
     GL.NewList(ID, mode);
 }
Пример #12
0
        public void New(ListMode listmode)
        {
            if (!GL.IsList(glid))
            {
                Generate();
            }

            GL.NewList(glid, listmode);
        }
Пример #13
0
    // -------------------------------
    // --       Dropdown Anims      --
    // -------------------------------

    public void OpenDropdown(List <ListMode> list, List <ListMode> selectedModes, bool default_)
    {
        if (!default_)
        //if (selectedMode.modeType != ListMode.ListModeType.Default)
        {
            if (dropdownType == DropdownType.Filter)
            {
                for (int i = 0; i < list.Count; i++)
                {
                    ListMode listMode = list[i];
                    bool     inList   = false;
                    foreach (ListMode selectedMode in selectedModes)
                    {
                        if (selectedMode.mode == listMode.mode)
                        {
                            inList = true;
                        }
                    }
                    if (inList)
                    {
                        list[i].selected = true;
                    }
                    else
                    {
                        list[i].selected = false;
                    }
                }
            }
            else
            {
                for (int i = 0; i < list.Count; i++)
                {
                    if (list[i].mode == selectedModes[0].mode)
                    {
                        list[i].selected = true;
                    }
                }
            }
        }
        else
        {
            if (list.Count > 0)
            {
                list[0].selected = true;
            }
        }
        window.CloseAllDropdowns();
        Start(); // Make sure dropdown rect is set
        isLerping          = true;
        timeStartedLerping = Time.time;
        dropdownOpen       = true;
        creatingDropdown   = true;
        //arrowOldRotation = dropdownArrow.rectTransform.eulerAngles;
        //arrowNewRotation = new Vector3(0, 0, 0);
        newList = list;
        TryMakeNext();
    }
Пример #14
0
 private void InitializeCommands()
 {
     CommandDAO.GetCommands().ForEach(delegate(List <Command> ListMode)
     {
         ListMode.ForEach(delegate(Command Command)
         {
             AddCommand(Command);
         });
     });
 }
Пример #15
0
 public void SetSortMode(ListMode newSortMode)
 {
     //print("Setting sort mode to " + newSortMode.mode);
     sortMode          = newSortMode;
     sortMode.selected = true;
     sortByDropdown.NewSelected(sortMode);
     sortByDropdown.CloseDropdown();
     sortByDropdown.titleText.text = newSortMode.mode;
     CreateList();
 }
Пример #16
0
        public SubControlSelectionPanel(String paPanelType, String paPanelAppearance, String paPanelTitle, String paDynamicQuery, String paFilterName = null)
        {
            clArraySelectionList = DynamicQueryManager.GetInstance().GetTableStringArrayResult(paDynamicQuery);
            clPanelTitle         = paPanelTitle;
            clPanelType          = paPanelType;
            clPanelAppearance    = paPanelAppearance;
            clFilterName         = paFilterName;
            clListMode           = ListMode.ArrayMode;
            clSelectionMode      = SelectionMode.Text;

            clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage;
        }
Пример #17
0
        public SubControlSelectionPanel(String paPanelType, String paPanelAppearance, String paPanelTitle, Dictionary <String, String> paSelectionList, String paFilterName = null)
        {
            clDictionarySelectionList = paSelectionList;
            clPanelTitle      = paPanelTitle;
            clPanelType       = paPanelType;
            clPanelAppearance = paPanelAppearance;
            clFilterName      = paFilterName;
            clListMode        = ListMode.DictionaryMode;
            clSelectionMode   = SelectionMode.Text;

            clLanguageManager = ApplicationFrame.GetInstance().ActiveSubscription.ActiveLanguage;
        }
Пример #18
0
        private void listSolution(Solution solution, ListMode mode)
        {
            writeSolution(solution);

            writeProjects(solution, mode);
            writePublishedNugets(solution, mode);
            writeDependencies(solution, mode);

            if (mode != ListMode.all)
            {
                ConsoleWriter.PrintHorizontalLine();
            }
        }
Пример #19
0
 void CompileList(ListMode mode)
 {
     if (!IsDisposed)
     {
         if (ListHandle == 0)
         {
             ListHandle = GL.GenLists(1);                         // Shouldn't GL.GenLists be uint ???
         }
         GL.NewList(ListHandle, mode);
         Flush();
         GL.EndList();
     }
 }
Пример #20
0
 public void AddFilterMode(ListMode newFilterMode)
 {
     filterDropdown.NewSelected(newFilterMode);
     filters.Add(newFilterMode);
     if (filters.Count > 1)
     {
         filterDropdown.titleText.text = "Multiple";
     }
     else
     {
         filterDropdown.titleText.text = newFilterMode.mode;
     }
 }
Пример #21
0
        protected override void Compile(ListMode mode = ListMode.Compile)
        {
            for (int i = 0; i < this.FrameCount; i++)
            {
                this.lists[i] = GL.GenLists(1);
                GL.NewList(this.lists[i], ListMode.Compile);
                {
                    this.Execute(i);
                }
                GL.EndList();
            }

            this.RequiredRecompile = false;
        }
Пример #22
0
 public Player(bool playable, Side side, Agent agent, List <StrategyCard> hands)
 {
     this.playable    = playable;
     this.side        = side;
     this.agent       = agent;
     this.hands       = new List <StrategyCard>(hands);
     this.sendIndexes = new List <int>();
     draw_num         = 2;
     send_num         = 1;
     mode             = ListMode.HANDS;
     lockon           = Lockon.NORMAL;
     death            = false;
     win = false;
 }
Пример #23
0
        public async Task <IEnumerable <GistObject> > ListGists(ListMode mode)
        {
            Uri requestUrl;

            if (mode == ListMode.PublicGists)
            {
                requestUrl = new Uri("https://api.github.com/gists/public");
            }
            else
            {
                requestUrl = new Uri(string.Format("https://api.github.com/gists{0}?access_token={1}",
                                                   (mode == ListMode.AuthenticatedUserStarredGists) ? "/starred" : "", this._accessToken));
            }
            return(await this.ListGists(requestUrl));
        }
Пример #24
0
        private void workshopOnlineButton_Click(object sender, RoutedEventArgs e)
        {
            state             = ListMode.OnlineWorkshop;
            contentTitle.Text = "";
            contentDesc.Text  = "";
            onContentSelectedGrid.IsEnabled = false;

            imagePath.Content = "No image selected";
            imageValid        = false;

            buttonDelete.IsEnabled = true;

            listBox.ItemsSource = null;

            RefreshWorkshopList();
        }
Пример #25
0
        protected virtual void Compile(ListMode mode = ListMode.Compile)
        {
            if (this.listId != -1)
            {
                GL.DeleteLists(this.listId, 1);
            }

            this.listId = GL.GenLists(1);
            GL.NewList(this.listId, mode);
            {
                this.Execute();
            }
            GL.EndList();

            this.RequiredRecompile = false;
        }
Пример #26
0
    public void TryMakeNext()
    { // Attempts creating the next dropdown item.  If not one, ends.
        currentDropdownIndex++;
        try
        {
            //print("Nearly equal - \na: " + percentageComplete + "\nb: " + (increment *(double)currentDropdownIndex));
            Image newDropdownImage = Instantiate(dropdownPrefab);
            Text  newText          = newDropdownImage.GetComponentInChildren <Text>();
            newText.text = newList[currentDropdownIndex - 1].mode;
            newDropdownImage.transform.SetParent(transform, false);
            newDropdownImage.gameObject.SetActive(true);
            Color color = newDropdownImage.color;
            color.a = 0;
            newDropdownImage.color = color;
            //RectTransform rect = newDropdownImage.GetComponent<RectTransform>();
            Vector2      initialPos      = new Vector2(0, -(currentDropdownIndex - 1) * (dropdownRect.rect.height - .65f)); // -.65f gets rid of line in between (causes slight overlap)
            DropdownItem newDropdownItem = newDropdownImage.gameObject.GetComponent <DropdownItem>();
            newDropdownItem.listMode = newList[currentDropdownIndex - 1];
            Button newButton = newDropdownItem.GetComponentInChildren <Button>();
            newDropdownImage.sprite = (newList[currentDropdownIndex - 1].selected) ? SpriteManager.selectedDropdownSprite : SpriteManager.defaultDropdownSprite;
            switch (dropdownType)
            {
            case DropdownType.SortBy:
                ListMode sortModeListener = newList[currentDropdownIndex - 1];
                newButton.onClick.RemoveAllListeners();
                newButton.onClick.AddListener(() => window.SetSortMode(sortModeListener));
                break;

            case DropdownType.Filter:
                ListMode filterModeListener = newList[currentDropdownIndex - 1];
                newButton.onClick.AddListener(() => window.FilterModeCallback(filterModeListener));
                break;

            case DropdownType.Location:
                ListMode locationModeListener = newList[currentDropdownIndex - 1];
                // newButton.onClick.AddListener(() => window.SetLocationMode(locationModeListener));
                break;
            }
            newDropdownItem.Open(initialPos);
            dropdownDisplayedItems.Add(newDropdownItem);
        }
        catch (ArgumentOutOfRangeException)
        {
            creatingDropdown     = false;
            currentDropdownIndex = 0;
        }
    }
Пример #27
0
 public TwitterList(
     long id, [NotNull] TwitterUser user, [NotNull] string name, [NotNull] string fullName,
     [NotNull] Uri uri, [NotNull] string slug, ListMode mode, [CanBeNull] string description,
     long memberCount, long subscriberCount, DateTime createdAt)
 {
     Id              = id;
     User            = user ?? throw new ArgumentNullException(nameof(user));
     Name            = name ?? throw new ArgumentNullException(nameof(name));
     FullName        = fullName ?? throw new ArgumentNullException(nameof(fullName));
     Uri             = uri ?? throw new ArgumentNullException(nameof(uri));
     Slug            = slug ?? throw new ArgumentNullException(nameof(slug));
     ListMode        = mode;
     Description     = description ?? String.Empty;
     MemberCount     = memberCount;
     SubscriberCount = subscriberCount;
     CreatedAt       = createdAt;
 }
Пример #28
0
        private void localButton_Click(object sender, RoutedEventArgs e)
        {
            state             = ListMode.LocalFiles;
            contentTitle.Text = "";
            contentDesc.Text  = "";
            onContentSelectedGrid.IsEnabled = false;

            listBox.ItemsSource = null;

            imagePath.Content = "No image selected";
            imageValid        = false;

            buttonDelete.IsEnabled = false;

            _Missions.Clear();
            RefreshMissionList();
        }
Пример #29
0
        private void writePublishedNugets(Solution solution, ListMode mode)
        {
            if (mode == ListMode.assemblies)
            {
                writeAssemblies(solution);
                return;
            }

            if (mode.Matches(ListMode.published))
            {
                if (solution.Specifications.Any())
                {
                    Console.WriteLine("  Publishes");
                    solution.Specifications.Each(x => Console.WriteLine("    * " + x.Name));
                }
            }
        }
Пример #30
0
    public List <Vendor> SortVendorList(ListMode sortMode, List <Vendor> toSort)
    {
        switch (sortMode.mode)
        {
        case "Default":
        case "Name ABC":     // Name ABC is default here
            toSort.Sort(CompareVendorList_NameABC);
            return(toSort);

        case "Name ZYX":     // Name ABC is default here
            toSort.Sort(CompareVendorList_NameZYX);
            return(toSort);

        default:
            return(SortVendorList(new ListMode("Default", ListMode.ListModeType.SortBy), toSort));
        }
    }
Пример #31
0
        public IList <DomainLayer.DB_Model.News.News> GetNewsList(ListMode listMode = ListMode.All)
        {
            IQueryable <DomainLayer.DB_Model.News.News> query = _News.OrderByDescending(d => d.RegisterDate);


            switch (listMode)
            {
            case ListMode.ActiveNews:
                query = query.Where(w => w.IsActive);
                break;

            case ListMode.DeActiveNews:
                query = query.Where(w => !w.IsActive);
                break;
            }

            return(query.ToList());
        }
Пример #32
0
        internal IPackageInfo GetSinglePackageInfo(string packageId, ListMode listMode)
        {
            try
            {
                using (FileStream fileStream = OpenPackageListForReadOperation())
                {
                    PackageList packageList = LoadPackageList(fileStream);

                    IPackageInfo packageInfo = packageList.FetchSinglePackageListInfo(packageId, listMode);

                    return(packageInfo);
                }
            }
            catch (FileNotFoundException)
            {
                return(null);
            }
        }
Пример #33
0
 public OptionSetFieldSettings() {
     ListMode = ListMode.Dropdown;
 }
Пример #34
0
 public DisplayList(ListMode listmode)
 {
     Generate();
     New(listmode);
 }
Пример #35
0
 public async Task<IEnumerable<GistObject>> ListGists(ListMode mode)
 {
     Uri requestUrl;
     if (mode == ListMode.PublicGists)
     {
         requestUrl = new Uri("https://api.github.com/gists/public");
     }
     else
     {
         requestUrl = new Uri(string.Format("https://api.github.com/gists{0}?access_token={1}", 
             (mode == ListMode.AuthenticatedUserStarredGists) ? "/starred" : "", this._accessToken));
     }
     return await this.ListGists(requestUrl);
 }
Пример #36
0
        public void New(ListMode listmode)
        {
            if (!GL.IsList(glid)) Generate();

            GL.NewList(glid, listmode);
        }
Пример #37
0
 public void DataBind(ListMode mode = ListMode.None)
 {
     Mode = mode;
     LoadFormatting();
     LoadList(Mode);
 }
        protected virtual void OnListMode(int numeric, string channel, string setBy, DateTime setOn, string mask)
        {
            Channel c = GetChannel(channel);
            //ListModeType type = ListModeType.BAN;
            char type = '\0';
            switch (numeric)
            {
                case 346:           // +I
                    {
                        type = 'I';
                    } break;
                case 348:           // +e
                    {
                        type = 'e';
                    } break;
                default:
                case 367:           // +b
                    {
                        type = 'b';
                    } break;
            }

            if (c.ListModes.Find(x => x.Mask.EqualsIgnoreCase(mask)) != null)
            {
                return;                 // Already set, why are we adding it again? o.O
            }

            ListMode l = new ListMode(setOn, mask, setBy, type);
            c.ListModes.Add(l);
        }
Пример #39
0
 protected static extern void elm_list_mode_set(IntPtr obj, ListMode listMode);
Пример #40
0
        protected override void Compile(ListMode mode = ListMode.Compile)
        {
            for (int i = 0; i < this.FrameCount; i++)
            {
                this.lists[i] = GL.GenLists(1);
                GL.NewList(this.lists[i], ListMode.Compile);
                {
                    this.Execute(i);
                }
                GL.EndList();
            }

            this.RequiredRecompile = false;
        }
Пример #41
0
        public void SetSelect()
        {
            _mode = ListMode.Select;

            btnConferma.Visible = false;
            btnSeleziona.Visible = true;
            btnNewDocument.Visible = true;
            btnNuovoDocumentoArchiviazione.Visible = false;

            lista.DisplayLayout.Override.AllowDelete = DefaultableBoolean.False;
            lista.DisplayLayout.Override.AllowAddNew = AllowAddNew.No;
            lista.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.True;
            lista.DisplayLayout.Bands[0].Columns["DeleteColumn"].Hidden = true;

            lista.DisplayLayout.Bands[0].Columns["VisibileCondomino"].CellActivation = Activation.NoEdit;
            lista.DisplayLayout.Bands[0].Columns["Descrizione"].CellActivation = Activation.NoEdit;
            lista.DisplayLayout.Bands[0].Columns["NoCache"].CellActivation = Activation.NoEdit;

            lista.DisplayLayout.Bands[0].Columns["SelectColumn"].Hidden = false;
            lista.Dock = DockStyle.Fill;
        }
Пример #42
0
        public void SetAllowInsert(bool allow)
        {
            btnNewDocument.Visible = allow;
            btnNuovoDocumentoArchiviazione.Visible = allow;
            btnConferma.Visible = allow;
            lista.DisplayLayout.Override.AllowDelete = DefaultableBoolean.False;
            lista.DisplayLayout.Override.AllowAddNew = AllowAddNew.No;
            lista.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.False;
            lista.DisplayLayout.Bands[0].Columns["DeleteColumn"].Hidden = true;

            if (!allow)
            {
                _mode = ListMode.ReadOnly;
                lista.DisplayLayout.Bands[0].Columns["VisibileCondomino"].CellActivation = Activation.NoEdit;
                lista.DisplayLayout.Bands[0].Columns["Descrizione"].CellActivation = Activation.NoEdit;
                lista.DisplayLayout.Bands[0].Columns["NoCache"].CellActivation = Activation.NoEdit;
            }
        }
Пример #43
0
		private void updateListLayout(ListMode mode)
		{
			this.ListView.RowHeight = mode == ListMode.Normal ? 100 : 350;
			var type = mode == ListMode.Normal ? typeof(ProductListCell) : typeof(ProductListLargeCell);
			this.ListView.ItemTemplate = new DataTemplate(type);
		}
 public static void FillItems(ListItemCollection toItems, ListMode teListMode)
 {
     HSelectConfListController.FillItems(toItems, teListMode, "");
 }
 public static void FillItems(ListItemCollection toItems, ListMode teListMode, string tsWhereClause)
 {
     BaseListController.FillItems(toItems, teListMode, CRM.Buzlogic.Common.DataUtility.AppendString("select AUX_TYPE_ID,AUX_TYPE_NAME from T_HD_AUX_TYPE", " WHERE ", tsWhereClause));
 }
Пример #46
0
		internal static extern void glNewList(UInt32 list, ListMode mode);
Пример #47
0
 public EnumerationFieldSettings() {
     ListMode = ListMode.Dropdown;
 }
Пример #48
0
        /*
        protected virtual void OnNoticeReceived(string input)
        {
            string[] toks = input.Split(' ');
            Match m, n;
            string sender = "", message = "";
            if ((m = Patterns.rUserHost.Match(toks[0])).Success)
            {
                Channel target;
                message = input.Substring(input.IndexOf(':', 2) + 1);
                sender = m.Groups[1].Value;
                // priv. notice
                if ((n = Patterns.rChannelRegex.Match(toks[2])).Success)
                {
                    // channel
                    target = GetChannel(n.Groups[1].Value);
                    ChannelNoticeReceivedEvent.Raise(this, new ChannelMessageReceivedEventArgs(target, message, sender, true));
                }
                else
                {
                    // private notice
                    PrivateNoticeReceivedEvent.Raise(this, new PrivateMessageReceivedEventArgs(sender, message, true));
                }
            }
            else
            {
                // Server Notice
                Console.WriteLine("(S)NOTICE: {0}", input.Substring(input.IndexOf(toks[2])));
            }
        }
         */
        /// <summary>
        /// Internally handles one specific mode change on a channel
        /// </summary>
        /// <param name="chan">The Channel on which the change happened.</param>
        /// <param name="mode">The mode the change happened with.</param>
        /// <param name="parameter">The parameter for this mode (or null)</param>
        /// <param name="type">The type of mode this is.</param>
        /// <param name="isSet">If this mode was set. (False if it was unset)</param>
        protected virtual void HandleChannelMode(Channel chan, char mode, string parameter, ChanmodeType type, bool isSet)
        {
            #if DEBUG
            System.Diagnostics.Debug.WriteLine("Mode '{0}' is being {1} with parameter: {2} (Type: {3})",mode, isSet ? "set" : "unset", parameter, type );
            #endif

            if (type == ChanmodeType.ACCESS)
            {
                PrefixList list = null;
                foreach (var kvp in chan.Users)
                {
                    if (kvp.Key.EqualsIgnoreCase(parameter))
                    {
                        list = kvp.Value;
                    }
                }
                if (list == null)
                {
            #if DEBUG
            //                    throw new Exception("HandleChannelMode Access mode was set on a user who was not in the channel's list (chan.Users).");
            #endif
                    list = new PrefixList(this);
                    chan.Users.Add(parameter, list);
                }

                if (isSet)
                {
                    list.AddPrefix(list.ModeToPrefix(mode));
                }
                else
                {
                    list.RemovePrefix(list.ModeToPrefix(mode));
                }

                if (StrictNames)
                {
                    Send("NAMES {0}", chan.Name);
                }

            }
            else if (type != ChanmodeType.LIST)
            {
                if (isSet)
                {
                    chan.Modes.Remove(mode);  // If it is already there, it needs to be updated most likely. Or the IRCD is broken and this is irrelevent.
                    chan.Modes.Add(mode, parameter);
                }
                else
                {
                    chan.Modes.Remove(mode);
                }
            }
            else // if type is LIST
            {
                List<ListMode> list = chan.ListModes;

                ListMode lMode;

                if ((lMode = list.Find(x => x.Mask.EqualsIgnoreCase(parameter))) == null)
                {
                    if (!isSet)
                    {
                        return;
                    }

                    lMode = new ListMode(DateTime.Now, parameter, "", mode);
                    list.Add(lMode);
                }

                if (StrictModes)
                {
                    Send("MODE {0} +{1}", chan.Name, mode);
                }

                /*List<string> list;
                if (!chan.ListModes.TryGetValue(mode, out list))
                {
                    if (!isSet) // If we are unsetting a value but had no list...then clearly we had no value already stored :)
                        return;
                    list = new List<string>();
                    chan.ListModes.Add(mode, list);
                }
                // If we are here, we should have the list of this mode
                list.RemoveAll(x => x.EqualsIgnoreCase(parameter));
                if (isSet)
                {
                    list.Add(parameter);
                }*/

            }
        }
Пример #49
0
 public void Begin(ListMode mode)
 {
     if (ID == -1) ID = GL.GenLists(1);
     GL.NewList(ID, mode);
 }
Пример #50
0
        protected virtual void Compile(ListMode mode = ListMode.Compile)
        {
            if (this.listId != -1)
                GL.DeleteLists(this.listId, 1);

            this.listId = GL.GenLists(1);
            GL.NewList(this.listId, mode);
            {
                this.Execute();
            }
            GL.EndList();

            this.RequiredRecompile = false;
        }
 public static void FillItems(ListItemCollection toItems, ListMode teListMode, string tsWhereClause)
 {
     BaseListController.FillItems(toItems, teListMode, CRM.Buzlogic.Common.DataUtility.AppendString("select Hotel_Type_ID,Hotel_Type_Name from t_HD_Hotel_Type ", " WHERE ", tsWhereClause));
 }
Пример #52
0
 void Begin(ListMode mode)
 {
     fGI.NewList(fListID, mode);
 }
Пример #53
0
 public static void NewList(uint list, ListMode mode)
 {
     gl.glNewList(list, (int)mode);
 }
Пример #54
0
		public static void NewList(UInt32 list, ListMode mode)
		{
			Debug.Assert(Delegates.pglNewList != null, "pglNewList not implemented");
			Delegates.pglNewList(list, (Int32)mode);
			CallLog("glNewList({0}, {1})", list, mode);
			DebugCheckErrors();
		}
Пример #55
0
 internal void NewList(uint list, ListMode mode)
 {
     gl.glNewList(list, (int)mode);
     CheckException();
 }