public Category(string name, string nameEng, string imageUrl, Categorize categorize) { Name = name; NameEng = nameEng; ImageUrl = imageUrl; Categorize = categorize; }
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); }
public static void CategoryToNav() { Category = new Categorize { Visible = false }; Nav.Show(); }
public static void CategoryToView(GenreType genre) { Category.Hide(); Category = new Categorize { Visible = false }; View = new ListAll(genre); View.Show(); }
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; }