Beispiel #1
0
 public Result(OnlineDatabaseEntity context)
 {
     this.context = context;
     InitializeComponent();
     labelStatement.Visible = false;
     //LoadResultFromDatabase();
 }
Beispiel #2
0
 public Game(Image avatar, Image map, Image monster, string login, OnlineDatabaseEntity context)
 {
     shotWithoutIncreaseSpeed = 0;
     isMaximized    = false;
     pause          = false;
     playSound      = true;
     mapPicture     = map;
     monsterPicture = monster;
     this.context   = context;
     InitializeComponent();
     pictureBoxMonster.Image       = monster;
     pictureBoxMonsterSecond.Image = monster;
     BackgroundImage = map;
     pictureBoxMonsterSecond.Enabled = false;
     pictureBoxMonsterSecond.Visible = false;
     labelPlayer.BackColor           = Color.Transparent;
     labelLogin.BackColor            = Color.Transparent;
     labelGameTime.BackColor         = Color.Transparent;
     labelShotResult.BackColor       = Color.Transparent;
     bonus       = 1;
     gameTime    = 600;
     points      = 0;
     counterShot = 0;
     ChangePositionFirstMonster();
     ChangePositionSecondMonster();
     timerGameTime.Start();
     timerLocationMonster.Start();
     SetUser(login, avatar);
 }
Beispiel #3
0
 public AuthenticationWindow(Result resultWindow, int typeAction, OnlineDatabaseEntity context)
 {
     defaultPassword   = "******";
     this.context      = context;
     this.typeAction   = typeAction;
     this.resultWindow = resultWindow;
     InitializeComponent();
     textBoxPassword.UseSystemPasswordChar = true;
 }
 public PropertiesPlayer(OnlineDatabaseEntity context, List <string> nameDrawingPictures)
 {
     this.nameDrawingPictures = nameDrawingPictures;
     this.context             = context;
     InitializeComponent();
     SetAvatar(pictureBoxAvatar.InitialImage);
     LoadComboBox();
     LoadDefaultMapAndMonster();
     //LoadPlayerName();
 }
Beispiel #5
0
 public Menu()
 {
     context             = new OnlineDatabaseEntity();
     nameDrawingPictures = new List <string>();
     InitializeComponent();
 }