/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region CONSTRUCTION /// <summary> /// Initializes a new instance of the ColorDefinitionDialog class. /// Initializes components and gradients. /// </summary> /// <param name="drawingMode">The used <see cref="FixationDrawingMode"/> for the preview.</param> public ColorDefinitionDialog(FixationDrawingMode drawingMode) { this.InitializeComponent(); this.currentDrawingMode = drawingMode; this.InitializeGradients(); Ogama.Properties.Settings set = Properties.Settings.Default; this.selectedFont = (Font)set.GazeFixationsFont.Clone(); this.selectedFontColor = set.GazeFixationsFontColor; this.selectedFixationsPen = new Pen(set.GazeFixationsPenColor, set.GazeFixationsPenWidth); this.selectedFixationsPen.DashStyle = set.GazeFixationsPenStyle; this.selectedConnectionsPen = new Pen(set.GazeFixationConnectionsPenColor, set.GazeFixationConnectionsPenWidth); this.selectedFixationsPen.DashStyle = set.GazeFixationConnectionsPenStyle; }
/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region CONSTRUCTION /// <summary> /// Prevents a default instance of the RecentFilesList class from being created. /// Initializes Recentfiles list by reading application settings. /// </summary> private RecentFilesList() { this.appSettings = new Ogama.Properties.Settings(); maxNumItems = this.appSettings.NumberOfRecentFiles; this.Load(); }
/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region CONSTRUCTION /// <summary> /// Prevents a default instance of the RecentFilesList class from being created. /// Initializes Recentfiles list by reading application settings. /// </summary> private RecentFilesList() { this.appSettings = new Ogama.Properties.Settings(); maxNumItems = this.appSettings.NumberOfRecentFiles; this.Load(); }