мелкие правки

This commit is contained in:
kotcheshir73 2021-03-28 20:46:27 +04:00
parent 3a29225011
commit c5001cbd7a
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,5 @@
using System;
using DesktopTools.Controls;
using System;
namespace DesktopTools.Models
{
@ -10,6 +11,6 @@ namespace DesktopTools.Models
public string Title { get; set; }
public object Control { get; set; }
public ControlViewEntityList Control { get; set; }
}
}

View File

@ -9,9 +9,9 @@ namespace DepartmentPortalDesctop
{
public partial class FormMain : Form
{
private Dictionary<Guid, ControlViewEntityList> _baseControls;
private readonly Dictionary<Guid, ControlViewEntityList> _baseControls;
private Dictionary<Guid, ControlViewEntityList> _controls;
private readonly Dictionary<Guid, ControlViewEntityList> _controls;
public FormMain()
{
@ -76,7 +76,7 @@ namespace DepartmentPortalDesctop
splitContainerMain.Panel1.Controls.Clear();
splitContainerMain.Panel1.Controls.Add(ctrl);
dataGridViewControls.Rows.Add(new object[] { ctrl.Id, ctrl.Title });
dataGridViewControls.Rows[dataGridViewControls.Rows.Count - 1].Selected = true;
dataGridViewControls.Rows[^1].Selected = true;
}
}