コード例 #1
0
 public replayedGame(businessLayer bl, User user, String gameDescription)
 {
     InitializeComponent();
     this.BL   = bl;
     this.user = user;
     writeGameInBox(gameDescription);
 }
コード例 #2
0
        public ActionResult DeleteVideo(int id)
        {
            businessLayer bl = new businessLayer();

            bl.updateVideoUserTb(id);
            bl.DeleteVideoInfo(id);

            return(RedirectToAction("LandPage"));
        }
コード例 #3
0
 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;
 }
コード例 #4
0
        public void delete(List <int> ids)
        {
            businessLayer bl = new businessLayer();

            int[] uId = ids.ToArray();
            foreach (int i in uId)
            {
                int deleted = bl.delete(i);
            }
        }
コード例 #5
0
 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();
 }
コード例 #6
0
 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);
     }
 }
コード例 #7
0
 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();
 }
コード例 #8
0
 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";
     }
 }
コード例 #9
0
        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);
        }
コード例 #10
0
        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);
        }
コード例 #11
0
 public MainWindow(businessLayer bl)
 {
     InitializeComponent();
     this.BL = bl;
 }
コード例 #12
0
 public MainWindow()
 {
     this.BL = businessLayer.getBL();
     InitializeComponent();
 }
コード例 #13
0
 public signUp(businessLayer bl)
 {
     InitializeComponent();
     this.BL = bl;
 }