static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Console.Title = Application.ProductName + " " + Application.ProductVersion + " - Console"; //Console.OutputEncoding = System.Text.Encoding.GetEncoding(932); // This fixes the Japanese not showing properly, but it looks so weird in the console... if (Settings.Default.IsNeedUpgrade) { Settings.Default.Upgrade(); Settings.Default.IsNeedUpgrade = false; Settings.Default.Save(); } Console.WriteLine("Initilizing..."); Console.WriteLine(); Console.WriteLine("Preparing the Splash..."); Task SplashTask = Task.Run(() => { SplashForm SF = new SplashForm(3); Console.WriteLine("Running Splash Screen:"); SF.ShowDialog(); SF.Dispose(); }); Thread.Sleep(1000); Console.WriteLine(); Console.WriteLine("Checking for Updates..."); if (IsUpdateReady) { Console.WriteLine("An update is availible!"); Console.WriteLine("Please visit https://github.com/SuperHackio/LaunchCamPlus/releases to pick it up"); Console.WriteLine("Or click the \"Help\" button at the top of the Editor and click \"Github Releases\"."); ShowNeedsUpdate = true; } else { Console.WriteLine("No update is availible"); } Console.WriteLine(); Console.WriteLine("Preparing the Editor..."); CameraEditorForm Editor = new CameraEditorForm(args); Thread.Sleep(500); Console.WriteLine("Editor successfully prepared!"); Thread.Sleep(500); Console.WriteLine("Please Wait..."); IsProgramReady = true; SplashTask.Wait(); Console.WriteLine("Running the Editor:"); Console.WriteLine(ConsoleSplitter); Application.Run(Editor); Console.WriteLine(ConsoleSplitter); Console.WriteLine("Editor Finished!"); Console.WriteLine("Thank you for using Super Hackio's Launch Cam Plus!"); Thread.Sleep(1000); }
public SettingsPanel(CameraEditorForm parent) { InitializeComponent(); Loading = true; ParentCameraEditor = parent; DarkModeCheckBox.Checked = Settings.Default.IsDarkMode; UseHexCheckBox.Checked = Settings.Default.IsUseHexID; LongNumberCheckBox.Checked = Settings.Default.IsUseLongID; YAZ0CheckBox.Checked = Settings.Default.IsUseYAZ0; EnforceCompressCheckbox.Checked = Settings.Default.IsEnforceCompress; UniqueEditorsCheckbox.Checked = !Settings.Default.IsUseDefaultOnly; ShowAboutCheckBox.Checked = Settings.Default.IsShowAboutOnLaunch; SfxCheckBox.Checked = Settings.Default.EnableSFX; string tmp = Settings.Default.SplashSize.Width + "x" + Settings.Default.SplashSize.Height; SplashSizeComboBox.SelectedItem = tmp; SetStyle(ControlStyles.OptimizedDoubleBuffer, true); Loading = false; }