public GNPXApp000(NuPz_Win pGNP00win)
        {
            List <string> DirLst = Directory.EnumerateDirectories(".").ToList();

            LanguageLst = new List <string>();
            LanguageLst.Add("en");
            foreach (var P in DirLst)
            {
                var Q = P.Replace(".", "").Replace("\\", "");
                if (Q == "en")
                {
                    continue;
                }
                if (Q.Length == 2 || (Q[2] == '-' && Q.Length == 5))
                {
                    LanguageLst.Add(Q);
                }
            }

            LanguageLst = LanguageLst.FindAll(P => (P.Length == 2 || (P[2] == '-' && P.Length == 5)));
            LanguageLst.Sort();

            this.pGNP00win       = pGNP00win;
            cellSizeP            = cellSize + lineWidth;
            SDKCntrl             = new SDK_Ctrl(this, 0);
            GNPX_Eng             = new GNPZ_Engin(this, new UPuzzle());
            UPuzzleMan.pGNPX_Eng = GNPX_Eng;
            SDK_Ctrl.pGNPX_Eng   = GNPX_Eng;
            PTrans     = new PuzzleTrans(this);
            SolverLst2 = new List <UMthdChked>();
        }
Esempio n. 2
0
        private void btnMPre_Click(object sender, RoutedEventArgs e)
        {
            LstBxMltAns.ItemsSource = null;
            if (SDK_Ctrl.UGPMan == null)
            {
                MAnalizeBtnSet(); return;
            }

            SDK_Ctrl.MovePre();
            if (SDK_Ctrl.UGPMan == null)
            {
                _ResetAnalizer(true); return;
            }

            List <UPuzzle> pMltUProbLst = SDK_Ctrl.UGPMan.MltUProbLst;

            if (!GNPXApp000.chbConfirmMultipleCells || pMltUProbLst == null)
            {
                return;
            }

            AnalyzerCC = SDK_Ctrl.UGPMan.stageNo;
            GNPZ_Engin.GNPX_AnalyzerMessage = SDK_Ctrl.UGPMan.pGPsel.Sol_ResultLong;
            txbStepCC.Text         = AnalyzerCC.ToString();
            txbStepMCC.Text        = txbStepCC.Text;
            lblAnalyzerResult.Text = SDK_Ctrl.UGPMan.pGPsel.Sol_ResultLong;

            selXUPP = SDK_Ctrl.UGPMan.pGPsel.IDm;
            if (selXUPP < 0)
            {
                return;
            }
            UPP = pMltUProbLst.ConvertAll(P => new UProbS(P));
            LstBxMltAns.ItemsSource   = UPP;
            LstBxMltAns.SelectedIndex = selXUPP;

            if (selXUPP < UPP.Count)
            {
                LstBxMltAns.ScrollIntoView(UPP[selXUPP]);
            }
            _Set_DGViewMethodCounter(); //Counter of applied algorithm
        }
Esempio n. 3
0
 public patternGenerator(SDK_Ctrl SDKCx)
 {
     this.pSDKCntrl = SDKCx;
     GPat           = new int[9, 9];
 }