// Token: 0x06001BEC RID: 7148 RVA: 0x0005762C File Offset: 0x0005582C int IComparer.Compare(object x, object y) { if (x == null && y == null) { return(0); } if (x == null) { return(-1); } if (y == null) { return(1); } ListViewItemState <string> listViewItemState = x as ListViewItemState <string>; ListViewItemState <string> listViewItemState2 = y as ListViewItemState <string>; if (listViewItemState == null || listViewItemState2 == null) { return(Comparer.Default.Compare(x, y)); } if (this.bool_0) { return(Class408.DefaultZeroesFirst.Compare(listViewItemState.State, listViewItemState2.State)); } return(Class408.Default.Compare(listViewItemState.State, listViewItemState2.State)); }
// Token: 0x0600270A RID: 9994 RVA: 0x0008C510 File Offset: 0x0008A710 int IComparer.Compare(object x, object y) { if (object.ReferenceEquals(x, y)) { return(0); } if (x == null) { return(-1); } if (y == null) { return(1); } ListViewItemState <string> listViewItemState = x as ListViewItemState <string>; ListViewItemState <string> listViewItemState2 = y as ListViewItemState <string>; if (listViewItemState == null) { throw new ArgumentException(Class414.string_2); } if (listViewItemState2 == null) { throw new ArgumentException(Class414.string_1); } if (this.bool_0) { return(StringComparer.OrdinalIgnoreCase.Compare(listViewItemState.State, listViewItemState2.State)); } return(StringComparer.Ordinal.Compare(listViewItemState.State, listViewItemState2.State)); }
// Token: 0x06001CC7 RID: 7367 RVA: 0x0005D798 File Offset: 0x0005B998 public void method_1(object _) { MethodInvoker methodInvoker = null; CustomizeContentPack.Class260.Class261 @class = new CustomizeContentPack.Class260.Class261(); @class.class260_0 = this; @class.hashSet_0 = null; try { this.customizeContentPack_0.class132_0 = new Class132(this.customizeContentPack_0.class102_0.FileName, false, true); @class.hashSet_0 = new HashSet <ListViewItemState <string> >(); foreach (KeyValuePair <string, Class102.Class403> keyValuePair in this.customizeContentPack_0.class102_0.dictionary_0) { ListViewItemState <string> listViewItemState = new ListViewItemState <string>(keyValuePair.Key); if (this.customizeContentPack_0.method_0(keyValuePair.Key)) { listViewItemState.ForeColor = Color.Red; switch (keyValuePair.Value.enum76_0) { case Enum76.const_1: case Enum76.const_3: listViewItemState.Checked = true; break; } } else { switch (keyValuePair.Value.enum76_0) { case Enum76.const_0: listViewItemState.ForeColor = Color.DarkGray; break; case Enum76.const_1: case Enum76.const_3: listViewItemState.ForeColor = Color.Green; listViewItemState.Checked = true; break; case Enum76.const_2: listViewItemState.ForeColor = Color.Black; break; } } @class.hashSet_0.Add(listViewItemState); } } finally { Control sender = this.customizeContentPack_0; if (methodInvoker == null) { methodInvoker = new MethodInvoker(@class.method_0); } sender.smethod_4(methodInvoker); } }
public void SetState(ListViewItemState state, bool on = true) { this.mask |= ListViewItemMask.State; this.stateMask |= state; ListViewItemState tempState = GetState(); EnumUtil.SetFlags(ref tempState, state, on); this.state = (uint)tempState | (this.state & 0xFFFFFF00); }
private void method_15() { this.FilesList.BeginUpdate(); foreach (object obj in this.FilesList.Items) { ListViewItemState <string> listViewItemState = (ListViewItemState <string>)obj; listViewItemState.Checked = false; } this.FilesList.EndUpdate(); }
public LVITEM(int item, int subitem = 0, ListViewItemMask mask = ListViewItemMask.All, ListViewItemState stateMask = ListViewItemState.None) { if (mask.IsFlagSet(ListViewItemMask.Text)) { cchTextMax = 1024; InteropUtil.AllocString(ref pszText, ref cchTextMax); } iItem = item; iSubItem = subitem; this.stateMask = stateMask; }
// Token: 0x0600270E RID: 9998 RVA: 0x00011796 File Offset: 0x0000F996 int IEqualityComparer <ListViewItemState <string> > .GetHashCode(ListViewItemState <string> obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (this.bool_0) { return(StringComparer.OrdinalIgnoreCase.GetHashCode(obj.State)); } return(StringComparer.Ordinal.GetHashCode(obj.State)); }
// Token: 0x0600270C RID: 9996 RVA: 0x0008C5EC File Offset: 0x0008A7EC bool IEqualityComparer <ListViewItemState <string> > .Equals(ListViewItemState <string> x, ListViewItemState <string> y) { if (object.ReferenceEquals(x, y)) { return(true); } if (x == null || y == null) { return(false); } if (this.bool_0) { return(StringComparer.OrdinalIgnoreCase.Equals(x.State, y.State)); } return(StringComparer.Ordinal.Equals(x.State, y.State)); }
public void SetTemporaryState(ListViewItemState state) { _context.Enqueue(delegate { this.BackColor = HighlightingContext.Colors[state]; this.ForeColor = PhUtils.GetForeColor(this.BackColor); _state = state; _context.EnqueuePost(delegate { this.BackColor = _normalColor; this.ForeColor = PhUtils.GetForeColor(this.BackColor); _state = ListViewItemState.Normal; }); }); }
private static void InitializeRenderer(ListViewItemState state) { if (visualStyleRenderer == null) { visualStyleRenderer = new VisualStyleRenderer( baseElement.ClassName, baseElement.Part, (int)state); } else { visualStyleRenderer.SetParameters( baseElement.ClassName, baseElement.Part, (int)state); } }
// Token: 0x0600270F RID: 9999 RVA: 0x0008C6B0 File Offset: 0x0008A8B0 int IEqualityComparer.GetHashCode(object obj) { if (obj == null) { throw new ArgumentNullException("obj"); } ListViewItemState <string> listViewItemState = obj as ListViewItemState <string>; if (listViewItemState == null) { throw new ArgumentException(Class414.string_0); } if (this.bool_0) { return(StringComparer.OrdinalIgnoreCase.GetHashCode(listViewItemState.State)); } return(StringComparer.Ordinal.GetHashCode(listViewItemState.State)); }
// Token: 0x06001BFD RID: 7165 RVA: 0x00057CF0 File Offset: 0x00055EF0 private void btnExport_Click(object sender, EventArgs e) { if (this.lbFiles.SelectedItems.Count > 0) { ListViewItemState <string> listViewItemState = this.lbFiles.SelectedItems[0] as ListViewItemState <string>; Enum68 @enum = Class136.smethod_4(listViewItemState.State); if (@enum == Enum68.const_0) { return; } this.saveFileDialog_0.FileName = Path.GetFileName(listViewItemState.State); this.saveFileDialog_0.Filter = @enum.smethod_0(false); if (this.saveFileDialog_0.ShowDialog() == DialogResult.OK) { Class338 mfd = this.dictionary_0[listViewItemState]; mfd.smethod_0(this.saveFileDialog_0.FileName); } } }
// Token: 0x06001BED RID: 7149 RVA: 0x000576A4 File Offset: 0x000558A4 public int Compare(ListViewItemState <string> x, ListViewItemState <string> y) { if (x == null && y == null) { return(0); } if (x == null) { return(-1); } if (y == null) { return(1); } if (this.bool_0) { return(Class408.DefaultZeroesFirst.Compare(x.State, y.State)); } return(Class408.Default.Compare(x.State, y.State)); }
// Token: 0x0600270B RID: 9995 RVA: 0x0008C594 File Offset: 0x0008A794 int IComparer <ListViewItemState <string> > .Compare(ListViewItemState <string> x, ListViewItemState <string> y) { if (object.ReferenceEquals(x, y)) { return(0); } if (x == null) { return(-1); } if (y == null) { return(1); } if (this.bool_0) { return(StringComparer.OrdinalIgnoreCase.Compare(x.State, y.State)); } return(StringComparer.Ordinal.Compare(x.State, y.State)); }
public HighlightedListViewItem(HighlightingContext context, string text, bool highlight) : base(text) { _context = context; if (HighlightingContext.StateHighlighting && highlight) { this.BackColor = HighlightingContext.Colors[ListViewItemState.New]; this.ForeColor = PhUtils.GetForeColor(this.BackColor); _state = ListViewItemState.New; _context.EnqueuePost(delegate { this.BackColor = _normalColor; this.ForeColor = PhUtils.GetForeColor(this.BackColor); _state = ListViewItemState.Normal; }); } else { this.BackColor = _normalColor; } }
// Token: 0x0600270D RID: 9997 RVA: 0x0008C644 File Offset: 0x0008A844 bool IEqualityComparer.Equals(object x, object y) { if (object.ReferenceEquals(x, y)) { return(true); } if (x == null || y == null) { return(false); } ListViewItemState <string> listViewItemState = x as ListViewItemState <string>; ListViewItemState <string> listViewItemState2 = y as ListViewItemState <string>; if (listViewItemState == null || listViewItemState2 == null) { return(false); } if (this.bool_0) { return(StringComparer.OrdinalIgnoreCase.Equals(listViewItemState.State, listViewItemState2.State)); } return(StringComparer.Ordinal.Equals(listViewItemState.State, listViewItemState2.State)); }
public static void RenderBackground(Graphics g, Rectangle bounds, Brush background, ListViewItemState state) { if (state == ListViewItemState.Normal) { if (background != null) { g.FillRectangle(background, bounds); } } else if (RenderWithVisualStyles) { InitializeRenderer(state); visualStyleRenderer.DrawBackground(g, bounds); } else { if (state == ListViewItemState.Selected) { g.FillRectangle(SystemBrushes.Highlight, bounds); } else if (background != null) { g.FillRectangle(background, bounds); } } }
public void SetState(ListViewItemState state, bool on = true) { this.mask |= ListViewItemMask.State; this.stateMask |= state; ListViewItemState tempState = GetState(); EnumUtil.SetFlags(ref tempState, state, on); this.state = (uint)tempState | (this.state & 0xFFFFFF00); }
public bool GetState(ListViewItemState state) { return ((ListViewItemState)this.state).IsFlagSet(state); }
public LVITEM(int item, int subitem = 0, ListViewItemMask mask = ListViewItemMask.All, ListViewItemState stateMask = ListViewItemState.None) { if (mask.IsFlagSet(ListViewItemMask.Text)) { cchTextMax = 1024; InteropUtil.AllocString(ref pszText, ref cchTextMax); } iItem = item; iSubItem = subitem; this.stateMask = stateMask; }
public static void RenderItems(Graphics g, Rectangle bounds, Brush background, Rectangle[] textRectangles, string[] itemsText, Font[] fonts, TextFormatFlags[] flags, ListViewItemState state) { RenderBackground(g, bounds, background, state); RenderItemsText(g, textRectangles, itemsText, fonts, flags); }
private static void InitializeRenderer(ListViewItemState state) { if (visualStyleRenderer == null) { visualStyleRenderer = new VisualStyleRenderer( baseElement.ClassName, baseElement.Part, (int)state); } else { visualStyleRenderer.SetParameters( baseElement.ClassName, baseElement.Part, (int)state); } }
public static void RenderItems(Graphics g, Rectangle bounds, Brush background, Rectangle[] textRectangles, string[] itemsText, Font font, ListViewItemState state) { RenderBackground(g, bounds, background, state); RenderItemsText(g, textRectangles, itemsText, font); }
public void SetTemporaryState(ListViewItemState state) { _context.EnqueuePre(delegate { this.BackColor = HighlightingContext.Colors[state]; this.ForeColor = PhUtils.GetForeColor(this.BackColor); _state = state; _context.Enqueue(delegate { this.BackColor = _normalColor; this.ForeColor = PhUtils.GetForeColor(this.BackColor); _state = ListViewItemState.Normal; }); }); }
public HighlightedListViewItem(HighlightingContext context, string text, bool highlight) : base(text) { _context = context; if (HighlightingContext.StateHighlighting && highlight) { this.BackColor = HighlightingContext.Colors[ListViewItemState.New]; this.ForeColor = PhUtils.GetForeColor(this.BackColor); _state = ListViewItemState.New; _context.Enqueue(delegate { this.BackColor = _normalColor; this.ForeColor = PhUtils.GetForeColor(this.BackColor); _state = ListViewItemState.Normal; }); } else { this.BackColor = _normalColor; } }
// Token: 0x06001514 RID: 5396 RVA: 0x000058AE File Offset: 0x00003AAE public void method_0(ListViewItemState <Class322> item) { item.Checked = this.list_0.Contains(item.State); }
private static Class322 smethod_1(ListViewItemState <Class322> item) { return(item.State); }
private void method_0(ListViewItemState <string> item) { this.lbFiles.Items.Add(item); }
public static void RenderBackground(Graphics g, Rectangle bounds, Brush background, ListViewItemState state) { if (state == ListViewItemState.Normal) { if (background != null) { g.FillRectangle(background, bounds); } } else if (RenderWithVisualStyles) { InitializeRenderer(state); visualStyleRenderer.DrawBackground(g, bounds); } else { if (state == ListViewItemState.Selected) { g.FillRectangle(SystemBrushes.Highlight, bounds); } else if (background != null) { g.FillRectangle(background, bounds); } } }
public static void RenderItems(Graphics g, Rectangle bounds, Brush background, Rectangle textRectangle, string itemText, Font font, TextFormatFlags flags, ListViewItemState state) { RenderBackground(g, bounds, background, state); RenderItemText(g, textRectangle, itemText, font, flags); }
public static void RenderItems(Graphics g, Rectangle bounds, Rectangle textRectangle, string itemText, Font font, ListViewItemState state) { RenderBackground(g, bounds, null, state); RenderItemText(g, textRectangle, itemText, font, StandardFlags); }
public static void RenderItems(Graphics g, Rectangle bounds, Brush background, Rectangle textRectangle, string itemText, Font font, TextFormatFlags flags, ListViewItemState state) { RenderBackground(g, bounds, background, state); RenderItemText(g, textRectangle, itemText, font, flags); }
public bool GetState(ListViewItemState state) { return(((ListViewItemState)this.state).IsFlagSet(state)); }
public static void RenderItems(Graphics g, Rectangle bounds, Brush background, Rectangle[] textRectangles, string[] itemsText, Font[] fonts, TextFormatFlags[] flags, ListViewItemState state) { RenderBackground(g, bounds, background, state); RenderItemsText(g, textRectangles, itemsText, fonts, flags); }
public static void RenderItems(Graphics g, Rectangle bounds, Rectangle textRectangle, string itemText, Font font, ListViewItemState state) { RenderBackground(g, bounds, null, state); RenderItemText(g, textRectangle, itemText, font, StandardFlags); }
public bool GetState(ListViewItemState state) => ((ListViewItemState)this.state).IsFlagSet(state);
public static void RenderItems(Graphics g, Rectangle bounds, Brush background, Rectangle[] textRectangles, string[] itemsText, Font font, ListViewItemState state) { RenderBackground(g, bounds, background, state); RenderItemsText(g, textRectangles, itemsText, font); }
private static bool smethod_0(ListViewItemState <Class322> item) { return(item.Checked); }
// Token: 0x06002398 RID: 9112 RVA: 0x0007824C File Offset: 0x0007644C public Class361() { this.method_3(); this.dictionary_0 = new Dictionary <Class322, ListViewItem>(); this.columnHeader_0 = new ColumnHeader(); this.Columns.AddRange(new ColumnHeader[] { this.columnHeader_0 }); this.columnHeader_0.Text = "Plant Name (Bean Combination)"; this.columnHeader_0.Width = 380; base.BeginUpdate(); this.lvg1Bean = new ListViewGroup("1 Bean", HorizontalAlignment.Left); this.lvg2Beans = new ListViewGroup("2 Beans", HorizontalAlignment.Left); this.lvg3Beans = new ListViewGroup("3 Beans", HorizontalAlignment.Left); this.lvg4Beans = new ListViewGroup("4 Beans", HorizontalAlignment.Left); this.lvg5Beans = new ListViewGroup("5 Beans", HorizontalAlignment.Left); this.lvg6Beans = new ListViewGroup("6 Beans", HorizontalAlignment.Left); this.lvg7Beans = new ListViewGroup("7 Beans", HorizontalAlignment.Left); this.lvg7Beans_1 = new ListViewGroup("8 Beans", HorizontalAlignment.Left); foreach (Class322 @class in Class322.readOnlyCollection_0) { ListViewItem listViewItem = new ListViewItemState <Class322>(@class, @class.ToString()); switch (@class.CombinationSize) { case 1: listViewItem.Group = this.lvg1Bean; break; case 2: listViewItem.Group = this.lvg2Beans; break; case 3: listViewItem.Group = this.lvg3Beans; break; case 4: listViewItem.Group = this.lvg4Beans; break; case 5: listViewItem.Group = this.lvg5Beans; break; case 6: listViewItem.Group = this.lvg6Beans; break; case 7: listViewItem.Group = this.lvg7Beans; break; case 8: listViewItem.Group = this.lvg7Beans_1; break; } this.Items.Add(listViewItem); this.dictionary_0.Add(@class, listViewItem); } this.lvg1Bean.Header = "1 Bean"; this.lvg1Bean.Name = "lvg1Bean"; this.lvg2Beans.Header = "2 Beans"; this.lvg2Beans.Name = "lvg2Beans"; this.lvg3Beans.Header = "3 Beans"; this.lvg3Beans.Name = "lvg3Beans"; this.lvg4Beans.Header = "4 Beans"; this.lvg4Beans.Name = "lvg4Beans"; this.lvg5Beans.Header = "5 Beans"; this.lvg5Beans.Name = "lvg5Beans"; this.lvg6Beans.Header = "6 Beans"; this.lvg6Beans.Name = "lvg6Beans"; this.lvg7Beans.Header = "7 Beans"; this.lvg7Beans.Name = "lvg7Beans"; this.lvg7Beans_1.Header = "8 Beans"; this.lvg7Beans_1.Name = "lvg7Beans"; base.Groups.AddRange(new ListViewGroup[] { this.lvg1Bean, this.lvg2Beans, this.lvg3Beans, this.lvg4Beans, this.lvg5Beans, this.lvg6Beans, this.lvg7Beans, this.lvg7Beans_1 }); base.EndUpdate(); base.HeaderStyle = ColumnHeaderStyle.Nonclickable; }