public PlayListForm(LyricsForm lyricsForm, bool New = false) { InitializeComponent(); this.lyricsForm = lyricsForm; ini = new IniFile("Setting.ini"); this.New = New; lyricsForm.ReloadList = false; }
public LoginForm(LyricsForm lyricsForm) { InitializeComponent(); this.lyricsForm = lyricsForm; ini = new IniFile("Setting.ini"); IDbox.Text = ini.Read("Login", "ID"); PWbox.Text = ini.Read("Login", "PW"); }
public SettingForm(LyricsForm lyricsForm) { InitializeComponent(); this.lyricsForm = lyricsForm; ini = new IniFile("Setting.ini"); if (ini.Read("BackgroundColor", "Red").Length > 0) { BackgroundColor.Color = Color.FromArgb(255, int.Parse(ini.Read("BackgroundColor", "Red")) , int.Parse(ini.Read("BackgroundColor", "Green")) , int.Parse(ini.Read("BackgroundColor", "Blue"))); } BackColorBtn.BackColor = BackgroundColor.Color; BackColorBtn.ForeColor = lyricsForm.AutoChooseWB(BackgroundColor.Color); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); LyricsForm lyricsForm = new LyricsForm(); LoginForm loginForm = new LoginForm(lyricsForm); //Application.Run(new SettingForm()); Application.Run(loginForm); try { Application.Run(lyricsForm); } catch (Exception) { } }
public LyricsForm() { InitializeComponent(); lyricsForm = this; Song = SongNameLabel.Text; Lyrics1 = LyricsLabel1.Text; Lyrics2 = LyricsLabel2.Text; PlayList = "".Split(','); ini = new IniFile("Setting.ini"); if (ini.Read("Setting", "Opacity").Length > 0) { Opacity = double.Parse(ini.Read("Setting", "Opacity")); TransparentSlider.Value = (decimal)(Opacity * 100); } else { Opacity = .75; } DriverService = ChromeDriverService.CreateDefaultService(); DriverService.HideCommandPromptWindow = true; Options = new ChromeOptions(); Options.AddArgument("disable-gpu"); Options.AddArgument("--window-size=1280,800"); Options.AddArgument("--disable-extensions"); Options.AddArgument("--proxy-server='direct://'"); Options.AddArgument("--proxy-bypass-list=*"); Options.AddArgument("--start-maximized"); Options.AddArgument("--headless"); Options.AddArgument("--disable-gpu"); Options.AddArgument("--disable-dev-shm-usage"); Options.AddArgument("--no-sandbox"); Options.AddArgument("--ignore-certificate-errors"); }