コード例 #1
0
 public TreeListDrawingsControl()
 {
     InitializeComponent();
     SetVisibleLevelsLine();
     tlDarwings.RestoreLayoutFromRegistry("DK\\Programs\\Layouts\\TreeListDrawings");
     tlDarwings.ActiveFilterString = string.Empty;
     _state = new TreeListViewState(tlDarwings);
 }
コード例 #2
0
        private async void StandartDrawingsListForm_Load(object sender, EventArgs e)
        {
            _treeListNodesState = new TreeListViewState(tlSsiStructure);
            await LoadTopStandartDrawings();

            gvTopView.OptionsBehavior.Editable = _controller.IsEnableEdit();
            var enableEdit = _controller.IsEnableEdit();
            tlSsiStructure.Columns.ForEach(x => x.OptionsColumn.AllowEdit = enableEdit);
            colCountFiles.OptionsColumn.AllowEdit = true;
            cbTop.AllowDelete =
                cbTop.AllowNew =
                    cbStructure.AllowNew =
                        cbStructure.AllowChild =
                            cbStructure.AllowDelete =
                                btnPaste.Enabled =
                                sbCopyPaste.Enabled =
                                    btnFillByTechRoute.Enabled =
                                        cbRateWork.AllowNew =
                                            cbRateWork.AllowDelete =
                                                gvRate.OptionsBehavior.Editable = _controller.IsEnableEdit();

            SettingsHelper.Instance.RestoreLayout(tlSsiStructure);
            tlSsiStructure.ActiveFilterString = string.Empty;
        }