static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var applicationContext = new CustomApplicationContext(); Application.Run(applicationContext); }
public Settings(CustomApplicationContext Main) { InitializeComponent(); this.Text = string.Format("Skypush {0} - Settings", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()); GetSettings(ProgramSettings.Default.AreaModifiers, ProgramSettings.Default.AreaKeys, textBoxAreaKeys); GetSettings(ProgramSettings.Default.WindowModifiers, ProgramSettings.Default.WindowKeys, textBoxWindowKeys); GetSettings(ProgramSettings.Default.EverythingModifiers, ProgramSettings.Default.EverythingKeys, textBoxEverythingKeys); main = Main; }
public Grabber(CustomApplicationContext Main) { InitializeComponent(); this.ShowInTaskbar = false; main = Main; //save main form to show notification bubble }