мелкие правки
This commit is contained in:
parent
3a29225011
commit
c5001cbd7a
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using DesktopTools.Controls;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace DesktopTools.Models
|
namespace DesktopTools.Models
|
||||||
{
|
{
|
||||||
@ -10,6 +11,6 @@ namespace DesktopTools.Models
|
|||||||
|
|
||||||
public string Title { get; set; }
|
public string Title { get; set; }
|
||||||
|
|
||||||
public object Control { get; set; }
|
public ControlViewEntityList Control { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,9 +9,9 @@ namespace DepartmentPortalDesctop
|
|||||||
{
|
{
|
||||||
public partial class FormMain : Form
|
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()
|
public FormMain()
|
||||||
{
|
{
|
||||||
@ -76,7 +76,7 @@ namespace DepartmentPortalDesctop
|
|||||||
splitContainerMain.Panel1.Controls.Clear();
|
splitContainerMain.Panel1.Controls.Clear();
|
||||||
splitContainerMain.Panel1.Controls.Add(ctrl);
|
splitContainerMain.Panel1.Controls.Add(ctrl);
|
||||||
dataGridViewControls.Rows.Add(new object[] { ctrl.Id, ctrl.Title });
|
dataGridViewControls.Rows.Add(new object[] { ctrl.Id, ctrl.Title });
|
||||||
dataGridViewControls.Rows[dataGridViewControls.Rows.Count - 1].Selected = true;
|
dataGridViewControls.Rows[^1].Selected = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user