public PieceSelectionScreen(Game game) : base("Piece Selection") { this.game = game; Title.Position = new CPos(0, -4096, 0); mapSelection = new PanelList(new MPos(4096, 4096), new MPos(512, 512), "wooden") { Position = new CPos(0, 1024, 0) }; foreach (var piece in PieceManager.Pieces) { mapSelection.Add(new PanelListItem(new BatchObject(UISpriteManager.Get("UI_map")[0]), new MPos(512, 512), piece.Name, new[] { Color.Grey + "[" + piece.Size.X + "," + piece.Size.Y + "]" }, () => { GameController.CreateNew(GameSaveManager.DefaultSave.Copy(), MissionType.TEST, InteractionMode.EDITOR, custom: MapType.FromPiece(piece)); Hide(); })); } Add(mapSelection); Add(new Button("Back", "wooden", () => game.ShowScreen(ScreenType.MENU)) { Position = new CPos(4096, 6144, 0) }); Add(new Button("New Piece", "wooden", () => { createPieceScreen.ActiveScreen = true; }) { Position = new CPos(0, 6144, 0) }); Add(new Button("Delete Piece", "wooden") { Position = new CPos(-4096, 6144, 0) }); createPieceScreen = new CreatePieceScreen(); }
public UnRemove(MainForm mainform) { InitializeComponent(); UnRempvePanelList = new PanelList<VersionInfo>(); this.tableLayoutPanel1.Controls.Add(UnRempvePanelList,0,1); m_form = mainform; }
public AllVersionPanel() { InitializeComponent(); relationpan = new RelationshipPanel(); this.ListAllVersionPanelList = new PanelList<VersionInfo>(); LoatStatusLabel = new Label(); LoatStatusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 35F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); LoatStatusLabel.Text = "Please Wait"; LoatStatusLabel.TextAlign = System.Drawing.ContentAlignment.TopCenter; LoatStatusLabel.Visible = false; LoatStatusLabel.AutoSize = true; LoatStatusLabel.BorderStyle = BorderStyle.FixedSingle; showingWait = false; this.ListAllVersionPanelList.ExtraRowSpace = 0; this.VersionPanel.Controls.Add(LoatStatusLabel); this.VersionPanel.Controls.Add(this.ListAllVersionPanelList); this.ListAllVersionPanelList.Dock = System.Windows.Forms.DockStyle.Fill; this.ListAllVersionPanelList.Visible = true; this.RelationShipPanel.Controls.Add(relationpan); relationpan.Dock = DockStyle.Fill; DisplayType = DisplayOptions.List; }
protected void lbtAddPanel_Click(object sender, EventArgs e) { int idPanel = int.Parse(ddlPanel.SelectedValue); PanelInPage pip = new PanelInPage(); pip.Panel = PanelList.Search(PSCPortal.Engine.Panel.Parse(idPanel)); PanelInPageList.AddDB(pip); }
public ActorShopScreen(Game game) : base("Actor Shop") { this.game = game; Title.Position = new CPos(0, -4096, 0); Add(new Panel(new MPos(8 * 1024, 2 * 1024), "wooden") { Position = new CPos(0, 920, 0) }); actors = new PanelList(new MPos(8120, 1024), new MPos(1024, 1024), "stone") { Position = new CPos(0, -2048, 0) }; foreach (var a in ActorCache.Types.Values) { if (a.Playable == null) { continue; } var sprite = a.GetPreviewSprite(); var scale = MasterRenderer.PixelSize / (float)Math.Max(sprite.Width, sprite.Height) - 0.1f; var item = new PanelListItem(new BatchObject(sprite), new MPos(1024, 1024), a.Playable.Name, new string[0], () => selectActor(a)) { Scale = scale * 2 }; if (!game.Stats.ActorAvailable(a.Playable)) { item.SetColor(Color.Black); } actors.Add(item); actorTypes.Add(a.Playable.InternalName); } Add(actors); Add(new Button("Buy", "wooden", () => buyActor(selected)) { Position = new CPos(-6144, 3072, 0) }); Add(new Button("Resume", "wooden", () => game.ShowScreen(ScreenType.DEFAULT, false)) { Position = new CPos(0, 6144, 0) }); information = new UITextBlock(FontManager.Default, TextOffset.LEFT, "Select an actor for further information.", "", "", "Cost: -") { Position = new CPos(-7900, 0, 0) }; Add(information); Add(new MoneyDisplay(game) { Position = new CPos(Left + 2048, Bottom - 1024, 0) }); }
public CopyVersionForm(IList<String> MonitorGroupLocations) { InitializeComponent(); CopyLocFromExtLoc = new Dictionary<string,string>(); MonitorLocationsPanelList = new PanelList<string>(); this.MonitorLocationsPanel.Controls.Add(MonitorLocationsPanelList); PanelFromMonitorGroupLocation pan = new PanelFromMonitorGroupLocation(); pan.CopyLocFromExtLoc = CopyLocFromExtLoc; MonitorLocationsPanelList.PanelFromData = pan; MonitorLocationsPanelList.AddData(MonitorGroupLocations); this.DialogResult = DialogResult.Cancel; }
/// <summary> /// 解析Json /// </summary> public void ParsePanelTypeJson() { panelPathDict = new Dictionary <PanelType, string>(); TextAsset ta = Resources.Load <TextAsset>("PanelJson"); PanelList jsonObject = JsonUtility.FromJson <PanelList>(ta.text); foreach (PanelProp info in jsonObject.panelList) { //panelDict.Add(info.panelType, info.panelPath); panelPathDict[info.panelType] = info.panelPath; } }
public TrophyScreen(Game game) : base("Trophy Collection") { this.game = game; Title.Position = new CPos(0, -4096, 0); trophies = new PanelList(new MPos(8120, 1024), new MPos(512, 1024), "wooden") { Position = new CPos(0, -1024, 0) }; foreach (var key in TrophyCache.Trophies.Keys) { var value = TrophyCache.Trophies[key]; var sprite = value.Image.GetTextures()[0]; var scale = MasterRenderer.PixelSize / (float)Math.Max(sprite.Width, sprite.Height) - 0.1f; var item = new PanelListItem(new BatchObject(sprite), new MPos(512, 1024), value.Name, new string[0], () => selectTrophy(key, value)) { Scale = scale * 2f }; if (!game.Stats.TrophyUnlocked(key)) { item.SetColor(Color.Black); } trophies.Add(item); } Add(trophies); Add(new Panel(new MPos(8 * 1024, 1024), "stone") { Position = new CPos(0, 1024, 0) }); information = new UITextBlock(FontManager.Default, TextOffset.LEFT, "Select a trophy for further information.", "", "", "") { Position = new CPos(-7900, 512 - 128, 0) }; Add(information); Add(new Button("Resume", "wooden", () => game.ShowScreen(ScreenType.DEFAULT, false)) { Position = new CPos(0, 6144, 0) }); }
public FilterFileForm(FolderUnit path, List<string> CurList, List<string> FilterSt, List<string> monitor) { InitializeComponent(); this.ResizeRedraw = true; FilterPanelList = new PanelList<FilterObject>(); this.FilterPanel.Controls.Add(FilterPanelList); FilterRowFromFilterObject fromMo = new FilterRowFromFilterObject(); fromMo.monitor = monitor; fromMo.FilterStrings = FilterSt; FilterPanelList.PanelFromData = fromMo; FilterPanelList.Dock = DockStyle.Fill; FilterObList = new List<FilterObject>(); if (path != null && path.externalLocation.Length > 0) { FillFilterPanelList(path, CurList, FilterSt); } this.DialogResult = DialogResult.Cancel; }
public UserVersionForm(VersionInfo versioninfo, List<string> AllUserVersions) { InitializeComponent(); m_VersionInfo = versioninfo; m_AllUserVersions = AllUserVersions; StopUserVersionPanelList = new PanelList<string>(); PanelFromUserVersion panelFromDat = new PanelFromUserVersion(); panelFromDat.m_UserVersionForm = this; StopUserVersionPanelList.PanelFromData = panelFromDat; this.VersionPanel.Controls.Add(StopUserVersionPanelList); NewUserVersions = new List<string>(); RemoveUserVersions = new List<string>(); ReUseUserVersions = new List<string>(); LastUserVersions = new List<string>(); UsedUserVersions = new List<string>(); ContinueUserVersions = new List<string>(); SetUserVersions(versioninfo.UserVersionsThatContain); SetReUseUserVersion(versioninfo.UserVersionsThatContain, AllUserVersions); this.DialogResult = DialogResult.Cancel; StopUserVersionPanelList.ExtraRowSpace = 5; }
/// <summary> /// Main from loader /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainFormLoader(object sender, EventArgs e) { timerSlowDisplay.Start(); #region Adapter filling // TODO: данная строка кода позволяет загрузить данные в таблицу "dbssDS.Applications". При необходимости она может быть перемещена или удалена. applicationsTableAdapter.Fill(dbssDS.Applications); // TODO: данная строка кода позволяет загрузить данные в таблицу "dbssDS.Masters". При необходимости она может быть перемещена или удалена. mastersTableAdapter.Fill(dbssDS.Masters); // TODO: данная строка кода позволяет загрузить данные в таблицу "dbssDS.Services". При необходимости она может быть перемещена или удалена. servicesTableAdapter.Fill(dbssDS.Services); // TODO: данная строка кода позволяет загрузить данные в таблицу "dbssDS.Manufacturers". При необходимости она может быть перемещена или удалена. manufacturersTableAdapter.Fill(dbssDS.Manufacturers); // TODO: данная строка кода позволяет загрузить данные в таблицу "dbssDS.DATA". При необходимости она может быть перемещена или удалена. dataTableAdapter.Fill(dbssDS.DATA); // TODO: данная строка кода позволяет загрузить данные в таблицу "dbssDS.CarOwners". При необходимости она может быть перемещена или удалена. carOwnersTableAdapter.Fill(dbssDS.CarOwners); // TODO: данная строка кода позволяет загрузить данные в таблицу "dbssDS.Cars". При необходимости она может быть перемещена или удалена. carsTableAdapter.Fill(dbssDS.Cars); #endregion // TODO: create a connection sqlConnect = new SqlConnection(Properties.Settings.Default.ConnectionString); // TODO: create a command sqlCommand = new SqlCommand { Connection = sqlConnect }; pb = new PictureBox(); timespan = DateTime.Now.Millisecond; #region Create list of tables source & list of panels PanelList = Controls.OfType <Panel>().ToList(); PanelList.Reverse(); SourceList = new List <BindingSource>(7) { carsBindingSource, carOwnersBindingSource, mastersBindingSource, manufacturersBindingSource, applicationsBindingSource, servicesBindingSource, dataBindingSource }; List <MonthCalendar> mc = new List <MonthCalendar>(7) { applicationsCalendar, carOwnersCalendar, carsCalendar, dataCalendar, manufacturersCalendar, mastersCalendar, servicesCalendar }; // Filling calendar for (int i = 0; i < mc.Count; i++) { for (int j = 0; j < mastersGrid.Rows.Count - 1; j++) { mc[i].AddAnnuallyBoldedDate( (DateTime)mastersGrid.Rows[j].Cells["mastersBirthColumn"].Value); } } mc.Clear(); mc.TrimExcess(); carsOpenItem.PerformClick(); #endregion }
public NewLocationManger(PanelList<String> NewMonitorLocationsPanelList, List<string> MonitorLocation, Button okButton) { this.NewMonitorLocationsPanelList = NewMonitorLocationsPanelList; this.MonitorLocation = MonitorLocation; FilterString = new List<string>(); filter = new Options(); filter.filterList = new List<string>(); FolderTrack.Types.MGProperties temMGP = new FolderTrack.Types.MGProperties(); filter.proper = temMGP.GetGuiProp(); filter.filtCh = new FilterChangeOb(); this.OkButton = okButton; HandleOkButton(); }
public PanelRepository(PanelList panels) : base(panels) { this.Panels = panels; }
public virtual PageConfigView Create() { //BasePageView.Title = ModuleConfig.Title; #region 验证 PageHeader header = ValidHeader(); if (!header.IsValid) { return(BasePageView); } #endregion #region 钮初始化 SetDefaultButton(); ModuleConfig.Buttons.ToList().ForEach( a => { bool isData = a.IsData; var bt = new CustomButtonConfigView() { Client = a.Client, Name = a.Name, Server = a.Server, Text = a.Text, Unbatchable = a.Unbatchable, BtnCss = a.BtnCss, Icon = a.Icon }; #region 钮验证 bool IsAuthenticated = true; if (ModuleConfig.Right != null && ModuleConfig.Right.FunctionRights != null) { //var buttonRight = ModuleConfig.Right.FunctionRights.ButtonRights.FirstOrDefault(b => b.ButtonName == a.Name); //if (buttonRight != null) //{ // var rightUnit = ModuleConfig.Right.FunctionRights.RightUnits.FirstOrDefault(b => b.Name == buttonRight.Name); // //Debug.AssertNotNull(rightUnit, string.Format("需要配置名为{0}的RightUnit", buttonRight.Name), this); // if (rightUnit.RightType == RightType.MvcFilter) // { // var type = RightUtil.RightVerification(rightUnit.RegName); // IsAuthenticated = type == RightFilterType.Success; // } //} } #endregion if (IsAuthenticated) { if (isData) { if (!BasePageView.DataButtons.Keys.Contains(a.Name)) { BasePageView.DataButtons.Add(a.Name, bt); } } else { if (!BasePageView.PageButtons.Keys.Contains(a.Name)) { BasePageView.PageButtons.Add(a.Name, bt); } } } } ); #endregion Dictionary <string, FormConfigView> formViewDict = new Dictionary <string, FormConfigView>(); //创建Form FormConfigs.ToList().ForEach(form => { FillDataSet(form); BaseFormViewCreator formViewCreator = null; if (PageStyle != PageStyle.None) { formViewCreator = provider.GetCodePlugService <BaseFormViewCreator>(PageStyle.ToString() + "Form");// (PageStyle.ToString() + "Form").InstanceByPage<BaseFormViewCreator>(form.Name); } else { form.Action = form.Action == PageStyle.None ? PageStyle.List : form.Action; if (form.Action == PageStyle.Insert) //ModulePage中如果Form的Action为Insert,则视为Update状态下的批量新增 { formViewCreator = provider.GetCodePlugService <BaseFormViewCreator>("UpdateForm"); //("UpdateForm").InstanceByPage<BaseFormViewCreator>(form.Name); } else { formViewCreator = provider.GetCodePlugService <BaseFormViewCreator>(form.Action.ToString() + "Form");// (form.Action.ToString() + "Form").InstanceByPage<BaseFormViewCreator>(form.Name); } } formViewCreator.Initialize(ModuleConfig, form, BasePageView); var formViews = formViewCreator.Create(); formViews.ToList().ForEach(view => { formViewDict.Add(view.Name, view); }); //viewDict.Add(formView.Name, formView); //var info = new FormConfigInfo(); //info.DataForm = dataForm; //info.FormConfig = a; //info.FormView = formView; //infoList.Add(info); }); //Dictionary<string, MvcFormConfigView> mvcFormViewDict = new Dictionary<string, MvcFormConfigView>(); ////创建MvcForm //if (MvcFormConfigs != null) //{ // MvcFormConfigs.Cast<MvcFormConfig>().ToList().ForEach(a => // { // MvcFormConfigView mvcFormView = new MvcFormConfigView(); // mvcFormView.Title = a.Title; // mvcFormView.Name = a.Name; // mvcFormView.ShowType = a.ShowType; // mvcFormView.ShowKind = a.ShowKind; // mvcFormView.DataRoute = a.DataRoute; // mvcFormViewDict.Add(mvcFormView.Name, mvcFormView); // }); //} //Dictionary<string, SeaFormConfigView> seaFormViewDict = new Dictionary<string, SeaFormConfigView>(); ////创建MvcForm //if (SeaFormConfigs != null) //{ // SeaFormConfigs.Cast<SeaFormConfig>().ToList().ForEach(a => // { // if (a.Plug.IsAkEmpty()) // { // a.Plug = "BaseSeaCreator"; // } // var _creator = a.Plug.CodePlugIn<ISeaCreator>(); // _creator.postDataSet = PostDataSet; // SeaFormConfigView seaFormView = _creator.create(a); // seaFormViewDict.Add(seaFormView.Name, seaFormView); // //seaFormView.P1 = this.PostDataSet.Tables[0].Compute // }); //} //Dictionary<string, ScriptFormConfigView> scriptFormViewDict = new Dictionary<string, ScriptFormConfigView>(); ////创建MvcForm //if (ScriptFormConfigs != null) //{ // ScriptFormConfigs.Cast<ScriptFormConfig>().ToList().ForEach(a => // { // ScriptFormConfigView scriptFormView = new ScriptFormConfigView(); // scriptFormView.Title = a.Title; // scriptFormView.Name = a.Name; // scriptFormView.ShowKind = a.ShowKind; // if (a.ScriptFunName.IsEmpty()) // { // scriptFormView.ScriptFormFunName = a.Name; // } // else // { // scriptFormView.ScriptFormFunName = a.ScriptFunName; // } // scriptFormViewDict.Add(scriptFormView.Name, scriptFormView); // }); //} //设置布局:当form不以tab连续布局时,则默认tile布局 #region Layout BasePageView.Layout = new List <PanelList>(); var previousKind = ShowKind.None; int i = 0; //int count = 0; ModuleConfig.Forms.ForEach(a => { PanelList panelList = null; if (ModuleConfig.Forms.Count > 1) { if (i == 0) { if (a.ShowKind == ShowKind.Tab && ModuleConfig.Forms[i + 1].ShowKind == ShowKind.Tile) { a.ShowKind = ShowKind.Tile; } } else if (i == ModuleConfig.Forms.Count - 1) { if (a.ShowKind == ShowKind.Tab && ModuleConfig.Forms[i - 1].ShowKind == ShowKind.Tile) { a.ShowKind = ShowKind.Tile; } } else if (a.ShowKind == ShowKind.Tab && ModuleConfig.Forms[i - 1].ShowKind == ShowKind.Tile && ModuleConfig.Forms[i + 1].ShowKind == ShowKind.Tile) { a.ShowKind = ShowKind.Tile; } i++; } else { a.ShowKind = ShowKind.Tile; } if (previousKind != a.ShowKind) { panelList = new PanelList(); //panelList.VerticalTab = a.VerticalTab; //if (panelList.VerticalTab) //{ // count++; //} //else if (count > 0) //{ // panelList.VerticalTab = false ? true : true; //} panelList.ShowKind = a.ShowKind; previousKind = a.ShowKind; List <Panel> panels = new List <Panel>(); Panel panel = new Panel(); panel.FormName = a.Name; panels.Add(panel); panelList.Panels = panels; BasePageView.Layout.Add(panelList); } else { Panel panel = new Panel(); panel.FormName = a.Name; //BasePageView.Layout[BasePageView.Layout.Count - 1].VerticalTab = a.VerticalTab; //if (BasePageView.Layout[BasePageView.Layout.Count - 1].VerticalTab) //{ // count++; //} //if (count > 0) //{ // BasePageView.Layout[BasePageView.Layout.Count - 1].VerticalTab = false ? true : true; //} BasePageView.Layout[BasePageView.Layout.Count - 1].Panels.Add(panel); } }); BasePageView.Layout.ForEach(a => { if (a.ShowKind == ShowKind.Tab) { var form = ModuleConfig.Forms.FirstOrDefault(b => b.VerticalTab); if (form != null) { a.VerticalTab = true; } } }); #endregion //FormViews = viewDict; //FormInfoList = infoList; BasePageView.Title = ModuleConfig.Title; BasePageView.PageLayout = ModuleConfig.Layout; BasePageView.Route = ModuleConfig.Route; BasePageView.IsPart = ModuleConfig.IsPart; BasePageView.BeforeHook = ModuleConfig.BeforeHook; BasePageView.AfterHook = ModuleConfig.AfterHook; BasePageView.TsHook = ModuleConfig.TsHook; //BasePageView.TsSkinName = ModuleConfig.TsSkinName; //BasePageView.Forms = FormViews; SetReturnUrl(); BasePageView.Forms = formViewDict; //BasePageView.MvcForms = mvcFormViewDict; //BasePageView.SeaForms = seaFormViewDict; //BasePageView.ScriptForms = scriptFormViewDict; //动态加载的js赋值 if (ModuleConfig.Mode == ModuleMode.None) { //BasePageView.Scripts = ModuleConfig.Scripts.Where(a => a.Style == Core.PageStyle.All || a.Style == Core.PageStyle.None).ToList(); } else { //var scripts = ModuleConfig.Scripts.Where(a => a.Style == Core.PageStyle.All || a.Style == Core.PageStyle.None || a.Style == PageStyle).ToList(); //FirstOrDefault(a => (a.Style & PageStyle) == PageStyle); //BasePageView.Scripts = scripts; } //BasePageView.Scripts.ForEach(a => //{ // if (a != null && !a.Path.IsEmpty() && a.Path.IndexOf("/") != 0) //相对路径 // { // a.Path = string.Format("/Scripts/{0}", a); // } //}); // BasePageView.PageSourceData = AppContext.Current.PageFlyweight.PageItems["PageSourceData"].Value<string>(); //BasePageView.PageCustomerSourceData = AppContext.Current.PageFlyweight.PageItems["PageCustomerSourceData"]; return(BasePageView); }
private void SetCustomNTre(Object CusO) { if (this.InvokeRequired) { this.Invoke(new VoidObject(SetCustomNTre), new object[] { CusO }); return; } CusL = (List<FilterObject>)CusO; ExcluPanLis = new PanelList<FilterObject>(); this.SuspendLayout(); this.Controls.Add(ExcluPanLis); ExcluPanLis.Dock = DockStyle.Fill; ExcluPanLis.Size = this.Size; fromM = new FilterRowFromFilterObject(); fromM.monitor = monitor; fromM.FilterStrings = filterString; ExcluPanLis.PanelFromData = fromM; ExcluPanLis.AddData(CusL); this.ResumeLayout(false); }
public SearchPanel() { InitializeComponent(); InitializeVariables(); this.VersionInfoPanelList = new PanelList<VersionInfo>(); l = new Label(); l.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); l.Text = "Please Wait"; l.TextAlign = System.Drawing.ContentAlignment.TopCenter; l.Visible = false; l.AutoSize = true; this.VersionInfoPanelList.Dock = DockStyle.Fill; this.panel1.Controls.Add(l); this.panel1.Controls.Add(this.VersionInfoPanelList); this.ChangeFPanelList = new PanelList<string>(); this.panel2.Controls.Add(this.ChangeFPanelList); this.ChangeFPanelList.Dock = DockStyle.Fill; ChangeFPanelList.PanelFromData = new PanelFromChange(this); this.DoubleBuffered = true; InvokeMonthChan = new HandleMonthChangeDelegate(HandleMonthChange); }
public ExplorerTab() { InitializeComponent(); TreeNodeFromString = new Dictionary<string, TreeNode>(); l = new Label(); ChangePanelList = new PanelList<ChangeInstruction>(); l.Font = new System.Drawing.Font("Microsoft Sans Serif", 35F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); l.Text = "Please Wait"; l.Dock = DockStyle.Top; l.AutoSize = true; l.Visible = false; this.panel2.Controls.Add(l); this.panel2.Controls.Add(ChangePanelList); ChangePanelList.Dock = DockStyle.Fill; }
public CalendarPanel() { InitializeComponent(); VersionToShow = new List<VersionInfo>(); this.VersionInfoPanelList = new PanelList<VersionInfo>(); l = new Label(); l.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); l.Text = "Please Wait"; l.TextAlign = System.Drawing.ContentAlignment.TopCenter; l.Visible = false; l.AutoSize = true; YearButtonList = new List<YearButton>(); this.VersionInfoPanelList.Dock = DockStyle.Fill; this.panel1.Controls.Add(l); this.panel1.Resize += new EventHandler(panel1_Resize); this.panel1.Controls.Add(this.VersionInfoPanelList); this.DoubleBuffered = true; }
private void SetRulesNTre(Object RulesO) { if (this.InvokeRequired) { this.Invoke(new VoidObject(SetRulesNTre), new object[] { RulesO }); return; } List<GuiInfoMGProperties> Rules = (List<GuiInfoMGProperties>)RulesO; ExcluPanLis = new PanelList<GuiInfoMGProperties>(); this.SuspendLayout(); this.Controls.Add(ExcluPanLis); ExcluPanLis.Dock = DockStyle.Fill; ExcluPanLis.Size = this.Size; fromM = new MGProRowFromMGObject(); ExcluPanLis.PanelFromData = fromM; ExcluPanLis.AddData(Rules); this.ResumeLayout(false); }