Exemple #1
0
        public PhoenixWindow()
        {
            InitializeComponent();

            trayIcon.Icon = this.Icon;

            infoPage     = new Phoenix.Gui.Pages.InfoPage();
            settingsPage = new Phoenix.Gui.Pages.SettingsPage();
            logPage      = new Phoenix.Gui.Pages._Log.LogPage();

            phoenixTabControl.InsertTab(0, new Crownwood.Magic.Controls.TabPage(Resources.Page_Info, infoPage, Resources.InfoIcon));
            phoenixTabControl.InsertTab(1, new Crownwood.Magic.Controls.TabPage(Resources.Page_Settings, settingsPage, Properties.Resources.SettingsIcon));
            phoenixTabControl.InsertTab(3, new Crownwood.Magic.Controls.TabPage(Resources.Page_Log, logPage, Properties.Resources.LogIcon));

            Config.Profile.Window.TopMost.Changed += new EventHandler(TopMost_Changed);

            Config.Profile.Window.Position.Changed += new EventHandler(WindowPosition_Changed);
            Config.Profile.Window.Position.Saving  += new EventHandler(WindowPosition_Saving);

            Config.Profile.Window.Size.Changed += new EventHandler(WindowSize_Changed);
            Config.Profile.Window.Size.Saving  += new EventHandler(WindowSize_Saving);

            Config.Profile.Window.ShowInTaskbar.Changed  += new EventHandler(ShowInTaskbar_Changed);
            Config.Profile.Window.ShowInTray.Changed     += new EventHandler(ShowInTray_Changed);
            Config.Profile.Window.MinimizeToTray.Changed += new EventHandler(MinimizeToTray_Changed);

            Location = Config.Profile.Window.Position;
            Size     = Config.Profile.Window.Size;

            Text = Core.VersionString;
        }
        public PhoenixWindow()
        {
            InitializeComponent();

            trayIcon.Icon = this.Icon;

            infoPage = new Phoenix.Gui.Pages.InfoPage();
            settingsPage = new Phoenix.Gui.Pages.SettingsPage();
            logPage = new Phoenix.Gui.Pages._Log.LogPage();

            phoenixTabControl.InsertTab(0, new Crownwood.Magic.Controls.TabPage(Resources.Page_Info, infoPage, Resources.InfoIcon));
            phoenixTabControl.InsertTab(1, new Crownwood.Magic.Controls.TabPage(Resources.Page_Settings, settingsPage, Properties.Resources.SettingsIcon));
            phoenixTabControl.InsertTab(3, new Crownwood.Magic.Controls.TabPage(Resources.Page_Log, logPage, Properties.Resources.LogIcon));

            Config.Profile.Window.TopMost.Changed += new EventHandler(TopMost_Changed);

            Config.Profile.Window.Position.Changed += new EventHandler(WindowPosition_Changed);
            Config.Profile.Window.Position.Saving += new EventHandler(WindowPosition_Saving);

            Config.Profile.Window.Size.Changed += new EventHandler(WindowSize_Changed);
            Config.Profile.Window.Size.Saving += new EventHandler(WindowSize_Saving);

            Config.Profile.Window.ShowInTaskbar.Changed += new EventHandler(ShowInTaskbar_Changed);
            Config.Profile.Window.ShowInTray.Changed += new EventHandler(ShowInTray_Changed);
            Config.Profile.Window.MinimizeToTray.Changed += new EventHandler(MinimizeToTray_Changed);

            Location = Config.Profile.Window.Position;
            Size = Config.Profile.Window.Size;

            Text = Core.VersionString;
        }