Ejemplo n.º 1
0
 public Category(string name, string nameEng, string imageUrl, Categorize categorize)
 {
     Name       = name;
     NameEng    = nameEng;
     ImageUrl   = imageUrl;
     Categorize = categorize;
 }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Nav = new Navigation();

            Ctrl = new AdminControl {
                Visible = false
            };

            View = new ListAll(GenreType.Null)
            {
                Visible = false
            };
            Search = new Search {
                Visible = false
            };
            Add = new AddMovie {
                Visible = false
            };

            Detail = new Detail {
                Visible = false
            };
            Category = new Categorize {
                Visible = false
            };

            Play = new Play {
                Visible = false
            };

            Application.Run(Nav);
        }
Ejemplo n.º 3
0
        public static void CategoryToNav()
        {
            Category = new Categorize {
                Visible = false
            };

            Nav.Show();
        }
Ejemplo n.º 4
0
        public static void CategoryToView(GenreType genre)
        {
            Category.Hide();
            Category = new Categorize {
                Visible = false
            };

            View = new ListAll(genre);
            View.Show();
        }
Ejemplo n.º 5
0
        public void RefreshData()
        {
            Saved.Clear();
            Rules.Clear();
            NewTransaction.DefaultAll();
            NewRule.DefaultAll();

            foreach (var row in SqliteDataAccess.LoadTransactions())
            {
                Saved.Add(row);
            }

            foreach (var row in SqliteDataAccess.LoadRules())
            {
                Rules.Add(row);
            }

            // apply current rules to current transactions and calculate account balance
            var cb = Categorize.ApplyCategoriesAndBalances(Saved, Rules, SqliteDataAccess.GetStartingBalance());

            CurrentBalance = "$" + cb.ToString();
        }
 public CategoryCreatedEvent(string categoryName, Categorize categorize)
 {
     CategoryName = categoryName;
     Categorize   = categorize;
 }