~quequotion/glippy/glippy

« back to all changes in this revision

Viewing changes to src/application/Application.cs

  • Committer: Que Quotion
  • Date: 2018-07-01 13:34:36 UTC
  • Revision ID: quequotion@bugmenot.com-20180701133436-usy073goo274fh6a
Glippy: Simple, powerful clipboard manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * Glippy
 
3
 * Copyright © 2010, 2011, 2012 Wojciech Kowalczyk
 
4
 * The program is distributed under the terms of the GNU General Public License Version 3.
 
5
 * See LICENCE for details.
 
6
 */
 
7
 
 
8
using Glippy.Core;
 
9
using Glippy.Core.Extensions;
 
10
 
 
11
namespace Glippy.Application
 
12
{
 
13
        /// <summary>
 
14
        /// Glippy application class.
 
15
        /// </summary>
 
16
        public static class Application
 
17
        {
 
18
                /// <summary>
 
19
                /// Initializes Glippy user interface.
 
20
                /// </summary>
 
21
                public static void Initialize()
 
22
                {
 
23
                        if (Settings.Instance[Settings.Keys.Core.SaveHistoryOnExit].AsBoolean())
 
24
                                Clipboard.Instance.Load(History.Load());
 
25
                        
 
26
                        new Ui();                                               
 
27
                }                       
 
28
        }
 
29
}