static void Main(string[] args) { View view = new View(); view.ReadViewStrategy(); View_Model operation = new View_Model(view); }
public ConfigWindow(View_Model vm) { InitializeComponent(); // loading window this.vm = vm; vm.LoadConfig(); // actualize config content Prog = vm.Programs ?? new List <string>(); //importing lists sources Ext = vm.Extensions ?? new List <string>(); lb_P.ItemsSource = Prog; //Lists sources lb_E.ItemsSource = Ext; }
/// <summary> /// Maken van het spel /// </summary> public Board(Grid viewGrid, View_Model.BoardView_Model newvm) { xmldoc = new XmlDocument(); FieldGrid = viewGrid; Dice = new Dice(); vm = newvm; //gooien afhandelen //ThrowCommand = new ThrowDice(); InitializeBoard(); }
public IActionResult Searchpage(View_Model viewmod) { viewmodel.Account.Name = HttpContext.Session.GetString("_Name"); viewmodel.Account.Account_Id = HttpContext.Session.GetInt32("_Id").GetValueOrDefault(0); if (viewmodel.Account.Name == null && viewmodel.Account.Account_Id == 0) { return(RedirectToAction("Log_in", "Log_in")); } else { viewmodel.GetFriendsDatabase(); viewmodel.GetFriendRequestsDatabase(); viewmodel.GetPlaylistsDatabase(); viewmodel.GetNumberOfFriends(); return(View(viewmodel)); } }
public IActionResult SearchSongs(View_Model viewmod) { viewmodel.Songs.Clear(); viewmodel.GetSongsDatabase(viewmod.Song); return(RedirectToAction("Searchpage")); }
public RoundButton(Field newField, View_Model.BoardView_Model newvm) { vm = newvm; field = newField; InitializeComponent(); }