private void TemplateForm_Shown(object sender, EventArgs e) { AtTreeList.SelectNode(this.treeListTemplateGroup, "idtemplategroup", Settings.SavedValues.IdTemplateProductionGroup); AtGrid.SelectRow(this.gridControlTemplate, "idtemplate", (object)Settings.SavedValues.IdTemplateProduction, true); if (this.Is_Dialog) { this.treeListTemplateGroup.ContextMenuStrip = (ContextMenuStrip)null; this.gridControlTemplate.ContextMenuStrip = (ContextMenuStrip)null; this.gridViewTemplate.OptionsBehavior.Editable = false; this.gridViewTemplateParam.OptionsBehavior.Editable = false; this.gridControlTemplate.ViewCollection.Remove((BaseView)this.gridViewTemplateParam); this.gridControlTemplate.LevelTree.Nodes.Clear(); this.gridViewTemplate.OptionsView.ShowDetailButtons = false; } else { this.gridViewTemplate.OptionsView.ShowDetailButtons = true; } }