Esempio n. 1
0
        private void sliderValue_Changed(object sender, ValueChangedEventArgs e)
        {
            this.preview.HeightRequest = e.NewValue;
            LongUzorView v = this.preview;

            v.Data = UzorProjectFileManager.LoadLongUzorData("/data/user/0/com.companyname.uzor/files/.local/share/new Uzor5.lubf");
            v.Draw();
        }
Esempio n. 2
0
        public void MakeUzorItemList()
        {
            this.itemStack.Children.Clear();

            var fileList = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData));

            sort(ref fileList);

            foreach (string fileName in fileList)
            {
                if (fileName.Substring(fileName.Length - 4) == ".ubf")
                {
                    this.itemStack.Children.Add(new UzorItem(UzorProjectFileManager.LoadUzorData(fileName), fileName, this));
                }
                else if (fileName.Substring(fileName.Length - 5) == ".lubf") //{   File.Delete(fileName); }
                {
                    this.itemStack.Children.Add(new LongUzorItem(UzorProjectFileManager.LoadLongUzorData(fileName), fileName, this));
                }
            }
        }