Esempio n. 1
0
        public UzorItemPage(UzorData data, string path, MainPage p)
        {
            NavigationPage.SetHasNavigationBar(this, false);
            InitializeComponent();
            this.path         = path;
            this.data         = data;
            this.pageForAlert = p;
            var upfView = new UzorPixelFieldView();

            this.uzorFieldFrame.Content = upfView;
            buildUzorPreview();
            itemNameLabel.Text = data.Name;
        }
Esempio n. 2
0
        public Tip1()
        {
            InitializeComponent();
            var d = makeDemonstrateUzor();

            v = new UzorPixelFieldView();
            this.demonstrateUzorFrame.Content = v;
            uzor      = new DemonstrateUzorEditorObject();
            uzor.Data = d;

            v.EditorObjectssList.Add(new Background(d));
            v.EditorObjectssList.Add(uzor);

            var d1 = makeRoundDemonstrateUzor();

            v1 = new UzorPixelFieldView();
            this.demonstrateUzorFrame2.Content = v1;
            uzor2      = new DemonstrateUzorEditorObject();
            uzor2.Data = d1;

            v1.EditorObjectssList.Add(new Background(d));
            v1.EditorObjectssList.Add(uzor2);


            Device.StartTimer(TimeSpan.FromMilliseconds(350), () => {
                if (uzorStep > 15)
                {
                    uzorStep = 0;
                    uzor.Data.Replace(makeDemonstrateUzor());
                    uzor2.Data.Replace(makeRoundDemonstrateUzor());
                }
                else
                {
                    Algorithm.BasicDrawingAlgorithm.Calculate(uzor.Data.Layers[0]);
                    Algorithm.BasicDrawingAlgorithm.Calculate(uzor2.Data.Layers[0]);
                    uzorStep++;
                }

                v.DrawView();
                v1.DrawView();
                return(true);
            });
        }