Ejemplo n.º 1
0
        public SoftwarePage()
        {
            InitializeComponent();
            var softwareColumnWidth = Functions.GetConfig("SOFTWARE_VIEW_WIDTH_KEY", "");

            ApplicationContext.SoftwareNameWidth       = Functions.GetColumnWidth("Name", softwareColumnWidth);
            ApplicationContext.SoftwareVersionWidth    = Functions.GetColumnWidth("Version", softwareColumnWidth);
            ApplicationContext.SoftwareCommentWidth    = Functions.GetColumnWidth("Comment", softwareColumnWidth);
            ApplicationContext.SoftwareExecutableWidth = Functions.GetColumnWidth("Executable", softwareColumnWidth);
            ApplicationContext.SoftwareParametersWidth = Functions.GetColumnWidth("Parameters", softwareColumnWidth);
            ApplicationContext.SoftwareSizeWidth       = Functions.GetColumnWidth("Size", softwareColumnWidth);

            SoftwareDataGrid.FieldLayouts.DataPresenter.GroupByAreaLocation = GroupByAreaLocation.None;
            Model = new SoftwareViewModel(this);
            Model.Refresh();
        }