public static void Read() { CheckConfig(); System.Configuration.Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); RdcManSection = (configuration.GetSection("rdcman") as RdcManSection); if (RdcManSection == null) { FormTools.InformationDialog("RDCMan н╢ур╣╫ еДжцнд╪Ч: RDCMan.exe.config"); return; } DisplaySizeElementCollection displaySizes = RdcManSection.DisplaySizes; int num = Math.Min(10, displaySizes.Count); SizeHelper.StockSizes = new Size[num]; for (int i = 0; i < num; i++) { SizeHelper.StockSizes[i] = SizeHelper.Parse(displaySizes.GetDisplaySize(i).Size); } }
public override bool ConfirmRemove(bool askUser) { FormTools.InformationDialog("Smart group members are specified by inclusion criteria; manual removal is not allowed"); return(false); }