コード例 #1
0
        public object Clone()
        {
            FilePanelSettings result = new FilePanelSettings();
            result.Width = this.Width;
            result.StarWidth = this.StarWidth;
            result.IcoWidth = this.IcoWidth;
            result.Path = this.Path;
            result.NameWidth = this.NameWidth;
            result.SizeWidth = this.SizeWidth;

            result.UsedPreviewPanel = this.UsedPreviewPanel;
            result.PreviewPanelWidth = this.PreviewPanelWidth;

            return result;
        }
コード例 #2
0
        public object Clone()
        {
            FilePanelSettings result = new FilePanelSettings();

            result.Width     = this.Width;
            result.StarWidth = this.StarWidth;
            result.IcoWidth  = this.IcoWidth;
            result.Path      = this.Path;
            result.NameWidth = this.NameWidth;
            result.SizeWidth = this.SizeWidth;

            result.UsedPreviewPanel  = this.UsedPreviewPanel;
            result.PreviewPanelWidth = this.PreviewPanelWidth;

            return(result);
        }
コード例 #3
0
ファイル: FilePanel.xaml.cs プロジェクト: userof/explorernet
        /// <summary>
        /// Задаёт настройки текущей файловой панели
        /// </summary>
        /// <param name="settings"></param>
        private void SetFilePanelSettings(FilePanelSettings settings)
        {
            this.Width = settings.Width.GetValueOrDefault(Properties.Settings.Default.WidthFilepanel);

            if (settings.Path != null)
            {
                this.Path = settings.Path;
            }

            this.UsedPreviewPanel = settings.UsedPreviewPanel;
            //this.grdPreview.Width = settings.PreviewPanelWidth;
            this.col2.Width = new GridLength(settings.PreviewPanelWidth);

            double starWidth = settings.StarWidth.GetValueOrDefault(Properties.Settings.Default.FilepanelStarWidth);
            (this.lvFileList.View as GridView).Columns[0].Width = starWidth;

            double icoWidth = settings.IcoWidth.GetValueOrDefault(Properties.Settings.Default.FilepanelIcoWidth);
            (this.lvFileList.View as GridView).Columns[1].Width = icoWidth;

            double nameWidth = settings.NameWidth.GetValueOrDefault(Properties.Settings.Default.FilepanelNameWidth);
            (this.lvFileList.View as GridView).Columns[2].Width = nameWidth;

            double sizeWidth = settings.SizeWidth.GetValueOrDefault(Properties.Settings.Default.FilepanelSizeWidth);
            (this.lvFileList.View as GridView).Columns[3].Width = sizeWidth;
        }
コード例 #4
0
ファイル: FilePanel.xaml.cs プロジェクト: userof/explorernet
        /// <summary>
        /// получает настройки текущей файловой панели
        /// </summary>
        /// <returns></returns>
        private FilePanelSettings GetFilePanelSettings()
        {
            FilePanelSettings fSettings = new FilePanelSettings();
            fSettings.Width = this.Width;
            fSettings.Path = this.Path;
            fSettings.StarWidth = (this.lvFileList.View as GridView).Columns[0].Width;
            fSettings.IcoWidth = (this.lvFileList.View as GridView).Columns[1].Width;
            fSettings.NameWidth = (this.lvFileList.View as GridView).Columns[2].Width;
            fSettings.SizeWidth = (this.lvFileList.View as GridView).Columns[3].Width;

            fSettings.UsedPreviewPanel = this.UsedPreviewPanel;
            //fSettings.PreviewPanelWidth = this.grdPreview.Width;
            fSettings.PreviewPanelWidth = this.col2.Width.Value;

            return fSettings;
        }