Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            GetLatestVersion.CheckVersion();

            ConfigOperations.CheckConfig();
            if (ConfigOperations.create == false)
            {
                this.Close();
            }
            var values = ConfigOperations.LoadValuesFromConfig();

            UpdateTimeField.Text = values[0];
            TitleTextBox.Text    = values[3];
            ArtistsTextBox.Text  = values[4];
            if (values[1] == "default" || values[2] == "default")
            {
                FontColorTextBox.Text   = "#FFFFFF";
                PlayerColorTextBox.Text = "#292828";
            }
            else
            {
                FontColorTextBox.Text   = values[1];
                PlayerColorTextBox.Text = values[2];
            }
        }
Ejemplo n.º 2
0
 //Check Update Button
 private void MaterialFlatButton1_Click(object sender, EventArgs e)
 {
     GetLatestVersion.CheckVersion();
 }