コード例 #1
0
 public static SharedSettings GetInstance()
 {
     if (settings == null)
     {
         settings = new SharedSettings();
     }
     return(settings);
 }
コード例 #2
0
 public MenuWindow()
 {
     InitializeComponent();
     settings = SharedSettings.GetInstance();
     ColorCompenents();
     settings.ColorsUpdated += SettingsColorsUpdated;
     Loaded          += MainWindowLoaded;
     LocationChanged += MenuWindowLocationChanged;
 }
コード例 #3
0
ファイル: MenuWindow.xaml.cs プロジェクト: ethanhs/IronShell
 public MenuWindow()
 {
     InitializeComponent();
     settings = SharedSettings.GetInstance();
     ColorCompenents();
     settings.ColorsUpdated += SettingsColorsUpdated;
     Loaded += MainWindowLoaded;
     LocationChanged += MenuWindowLocationChanged;
 }
コード例 #4
0
ファイル: Desktop.xaml.cs プロジェクト: Krutonium/IronShell
        public Desktop()
        {
            InitializeComponent();
            this.DockScreen();
            this.SendToBottom();
            Activated   += DesktopActivated;
            Deactivated += DesktopDeactivated;

            LoadButtons();

            settings = SharedSettings.GetInstance();
            settings.WallpaperChanged += SettingsWallpaperChanged;
            SetWallpaper();
        }
コード例 #5
0
ファイル: Desktop.xaml.cs プロジェクト: ethanhs/IronShell
        public Desktop()
        {
            InitializeComponent();
            this.DockScreen();
            this.SendToBottom();
            Activated += DesktopActivated;
            Deactivated += DesktopDeactivated;

            LoadButtons();

            settings = SharedSettings.GetInstance();
            settings.WallpaperChanged += SettingsWallpaperChanged;
            SetWallpaper();
        }
コード例 #6
0
        public TaskWindow()
        {
            InitializeComponent();
            settings = SharedSettings.GetInstance();

            ColorCompenents();
            settings.ColorsUpdated += SettingsColorsUpdated;
            Loaded          += MainWindowLoaded;
            LocationChanged += TaskWindowLocationChanged;
            var menu = new MenuWindow();

            menu.Show();

            var desktop = new Desktop();

            desktop.Show();

            setter = new WorkspaceSetter(this, menu, desktop);
        }
コード例 #7
0
ファイル: SharedSettings.cs プロジェクト: ethanhs/IronShell
 public static SharedSettings GetInstance()
 {
     if (settings == null)
         settings = new SharedSettings();
     return settings;
 }