示例#1
0
        private void InitializeProgram()
        {
            this._mySqlHandler = new MySqlHandler(MySqlClient.From(
                                                      "username",
                                                      "password",
                                                      "database",
                                                      "arthur.go-ao.be"));

            _currentImages = new List <Image>();
            ChangeGameState(false);
            for (int i = 0; i < 15; i++)
            {
                Button btn = new Button()
                {
                    Dock = DockStyle.Fill,
                    BackgroundImageLayout = ImageLayout.Stretch
                };

                btn.Click += this.SelectImage;

                tlpScreens.Controls.Add(btn);
            }

            tsmiSave.Enabled = false;
        }
示例#2
0
 public ImageRenamer(MySqlHandler sqlHandler, string image)
 {
     InitializeComponent();
     this._mySqlHandler = sqlHandler;
     this._image        = image;
     this.Text          = $@"Hernoem {image}";
 }
示例#3
0
 public ImageUpdater(MySqlHandler mySqlHandler)
 {
     InitializeComponent();
     this._mySqlHandler = mySqlHandler;
 }