Beispiel #1
0
        public frmMain()
        {
            InitializeComponent();

            // init docks
            this.TextDock              = new dcText();
            this.TextDock.HideOnClose  = true;
            this.TextDock.DockPanel    = this.dockMain;
            this.TextDock.VisibleState = DockState.Float;

            this.GfxDock              = new dcGfx();
            this.GfxDock.HideOnClose  = true;
            this.GfxDock.DockPanel    = this.dockMain;
            this.GfxDock.VisibleState = DockState.Float;

            this.ColorsDock              = new dcColors();
            this.ColorsDock.HideOnClose  = true;
            this.ColorsDock.DockPanel    = this.dockMain;
            this.ColorsDock.VisibleState = DockState.Float;

            this.MapDock              = new dcMap();
            this.MapDock.HideOnClose  = true;
            this.MapDock.DockPanel    = this.dockMain;
            this.MapDock.VisibleState = DockState.Float;

            this.SearchDock              = new dcSearch();
            this.SearchDock.HideOnClose  = true;
            this.SearchDock.DockPanel    = this.dockMain;
            this.SearchDock.VisibleState = DockState.Float;

            // subscribe to dock settings updates
            this.TextDock.TextSettingsUpdated     += Settings_TextSettingsUpdated;
            this.GfxDock.GfxSettingsUpdated       += Settings_GfxSettingsUpdated;
            this.MapDock.MapSettingsUpdated       += Settings_MapSettingsUpdated;
            this.ColorsDock.ColorsSettingsUpdated += Settings_ColorsSettingsUpdated;
        }
Beispiel #2
0
        public frmMain()
        {
            InitializeComponent();

            // init docks
            this.TextDock = new dcText();
            this.TextDock.HideOnClose = true;
            this.TextDock.DockPanel = this.dockMain;
            this.TextDock.VisibleState = DockState.Float;

            this.GfxDock = new dcGfx();
            this.GfxDock.HideOnClose = true;
            this.GfxDock.DockPanel = this.dockMain;
            this.GfxDock.VisibleState = DockState.Float;

            this.ColorsDock = new dcColors();
            this.ColorsDock.HideOnClose = true;
            this.ColorsDock.DockPanel = this.dockMain;
            this.ColorsDock.VisibleState = DockState.Float;

            this.MapDock = new dcMap();
            this.MapDock.HideOnClose = true;
            this.MapDock.DockPanel = this.dockMain;
            this.MapDock.VisibleState = DockState.Float;

            this.SearchDock = new dcSearch();
            this.SearchDock.HideOnClose = true;
            this.SearchDock.DockPanel = this.dockMain;
            this.SearchDock.VisibleState = DockState.Float;

            // subscribe to dock settings updates
            this.TextDock.TextSettingsUpdated += Settings_TextSettingsUpdated;
            this.GfxDock.GfxSettingsUpdated += Settings_GfxSettingsUpdated;
            this.MapDock.MapSettingsUpdated += Settings_MapSettingsUpdated;
            this.ColorsDock.ColorsSettingsUpdated += Settings_ColorsSettingsUpdated;
        }