示例#1
0
        //================================================================================
        public void onFirstLaunch()
        {
            string poeFolder = CajFuns.findPoeFolder();

            if (poeFolder != "")
            {
                txtPoeFolder.Text = poeFolder;
                CajApp.onOptionsChange(poeFolder, cbHotkey.Text);
            }
            txtPoeFolder.Focus();             //select it, so user can notice and correct it.
        }
示例#2
0
        //================================================================================
        static public void Shuffle(ref int[] a)
        {
            int max = a.Length;

            for (int i = 0; i < max / 2; i++)
            {
                int i2  = CajFuns.rnd(max / 2, max - 1);
                int tmp = a[i];
                a[i]  = a[i2];
                a[i2] = tmp;
            }
        }