public replayedGame(businessLayer bl, User user, String gameDescription) { InitializeComponent(); this.BL = bl; this.user = user; writeGameInBox(gameDescription); }
public ActionResult DeleteVideo(int id) { businessLayer bl = new businessLayer(); bl.updateVideoUserTb(id); bl.DeleteVideoInfo(id); return(RedirectToAction("LandPage")); }
public privateMessage(businessLayer bl, String gameID, String myID, String ReceieverID, String ReceiverName) { InitializeComponent(); this.BL = bl; this.gameID = gameID; this.myID = myID; this.ReceiverName = ReceiverName; this.ReceieverID = ReceieverID; this.label.Content = "write your private message for " + ReceiverName; }
public void delete(List <int> ids) { businessLayer bl = new businessLayer(); int[] uId = ids.ToArray(); foreach (int i in uId) { int deleted = bl.delete(i); } }
public spectatorMessage(businessLayer bl, String gameID, String myID, LinkedList <User> spectatorss) { InitializeComponent(); this.BL = bl; this.gameID = gameID; this.myID = myID; this.spectators = new LinkedList <User>(spectatorss); // this.spectators = spectators; items = new ComboBoxItem[spectators.Count]; initializeComboBox(); }
public gameCenter(businessLayer bl, User user, LinkedList <string> prefsGames) { InitializeComponent(); this.BL = bl; this.user = user; this.userName.Content = this.user.UserName; showAvatar(); if (prefsGames != null) { showSearchResults(prefsGames); } }
public game(businessLayer bl, BL.game Game, User user) { InitializeComponent(); this.BL = bl; this.Game = Game; this.user = user; isMaked = false; InitializeAvatrsImages(); InitializeCardsImages(); InitializePlayersComponents(); this.labelName.Content = this.user.UserName; newThread = new Thread(new ThreadStart(Run)); newThread.Start(); }
public create_game(businessLayer bl, User user, bool isCreate) { InitializeComponent(); this.BL = bl; this.user = user; this.isCreate = isCreate; if (isCreate) { create_button.Content = "CREATE"; } else { create_button.Content = "SEARCH"; } }
public Response <string> UserRegistration(Dictionary <string, string> request) { Response <string> response = new Response <string>(); try { businessLayer businessLayer = new businessLayer(); response = businessLayer.UserRegistration(request); } catch (Exception EX) { response = new Response <string>(); response.ResponseCode = 1; response.Status = "Error"; response.ResponseMessage = EX.Message; } return(response); }
public Response <ULogin> GetLogin(string Uname, string password) { Response <ULogin> response = null; ULogin Logindetails = new ULogin(); try { businessLayer businessLayer = new businessLayer(); Logindetails = businessLayer.Login(Uname, password); response = new Response <ULogin>(Logindetails); if (Logindetails != null) { if (response.Result.LoginID != null && response.Result.Username != null && response.Result.Name != null) { response.ResponseCode = 0; response.Status = "Login Successfully"; response.ResponseMessage = "Success"; } else { response.ResponseCode = 1; response.Status = "Faliure"; response.ResponseMessage = "Login details not available"; } } } catch (Exception ex) { response = new Response <ULogin>(Logindetails); response.ResponseCode = 1; response.Status = "Error"; response.ResponseMessage = ex.Message; } return(response); }
public MainWindow(businessLayer bl) { InitializeComponent(); this.BL = bl; }
public MainWindow() { this.BL = businessLayer.getBL(); InitializeComponent(); }
public signUp(businessLayer bl) { InitializeComponent(); this.BL = bl; }