protected void applyLocaleToItem(CAuthItem lItem) { XmlNode lPanelData; if (_Locale != null && (lPanelData = _Locale.GetPanelData("authitem")) != null) { try { lItem.Tags = XmlTools.getXmlNodeByName("typelist", lPanelData); } catch (Exception E) { throw new Exception("Typelist not found.", E); }; lItem.TagRemove = _Locale.GetTagText("remove"); lItem.TagApply = _Locale.GetTagText("apply"); lItem.TagReset = _Locale.GetTagText("reset"); lItem.TagPassword = _Locale.GetTagText("password"); lItem.TagUser = _Locale.GetTagText("user"); } }
protected void InsertItem(CAuthItem aItem) { SuspendLayout(); aItem.Location = new Point(0, _ItemsGUI.Count * _RowHeight); aItem.Size = new Size(this.Width, _RowHeight); aItem.Anchor = (System.Windows.Forms.AnchorStyles)( System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right ); //aItem.Resize += new EventHandler(ehResize); aItem.Expanded = false; applyLocaleToItem(aItem); Controls.Add(aItem); _ItemsGUI.Add(aItem); ResumeLayout(); }
protected void InsertItem(CAuthItem aItem) { SuspendLayout(); aItem.Location = new Point(0, _ItemsGUI.Count * _RowHeight); aItem.Size = new Size(this.Width, _RowHeight); aItem.Anchor = (System.Windows.Forms.AnchorStyles)( System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right ); //aItem.Resize += new EventHandler(ehResize); aItem.Expanded = false; applyLocaleToItem(aItem); Controls.Add(aItem); _ItemsGUI.Add(aItem); ResumeLayout(); }
protected void applyLocaleToItem(CAuthItem lItem) { XmlNode lPanelData; if (_Locale != null && (lPanelData = _Locale.GetPanelData("authitem")) != null) { try { lItem.Tags = XmlTools.getXmlNodeByName("typelist", lPanelData); } catch (Exception E) { throw new Exception("Typelist not found.", E); }; lItem.TagRemove = _Locale.GetTagText("remove"); lItem.TagApply = _Locale.GetTagText("apply"); lItem.TagReset = _Locale.GetTagText("reset"); lItem.TagPassword = _Locale.GetTagText("password"); lItem.TagUser = _Locale.GetTagText("user"); } }