Beispiel #1
0
        //================================================================================
        public MainForm(CajConfig config)
        {
            InitializeComponent();

            //default vars:
            this.TopMost          = true;
            this.notifyIcon1.Text = CajApp.appName;
            this.Text             = CajApp.appName;
            this.lblNotes.Text    = "";

            //init:
            createSprites();
            createHotkey(config.read(CajConfig.switchHotkey));
            setOverlayTheme();
            setGamePart(config.readInt(CajConfig.gamePart, 1));
        }
Beispiel #2
0
        //================================================================================
        public frmOptions(CajConfig config)
        {
            InitializeComponent();

            elementTitle = CajApp.appName + " :: Options";
            this.Text    = elementTitle;
            fillHotkeyVars();

            //start vars:
            this.txtPoeFolder.Text = config.read(CajConfig.poeFolderPath);
            this.cbHotkey.Text     = getUserAliasHotkey(config.read(CajConfig.switchHotkey));

            this.lblStatus.Text = "Game Part:\ncheck system tray menu.";
            //rest text was moved to "About": it takes too much place, bad UX.

            this.lblLink.Text = "(c) " + CajApp.appAboutLink;
        }