Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static Authorize form = new Authorize();
- static void Main2(object state)
- {
- Application.Run((Form)state);
- }
- static Authorize form = new Authorize();
- public static Authorize Create()
- {
- Thread thread = new Thread(Main2);
- thread.SetApartmentState(ApartmentState.STA);
- thread.Start(form);
- form.FormClosing += Authorize_FormClosing;
- return form;
- }
- public void InitForm()
- {
- InitializeComponent();
- this.FormClosing += Authorize_FormClosing;
- }
- public Authorize(string Url)
- {
- InitializeComponent();
- AuthCont.AllowNavigation = true;
- AuthCont.Navigate(Url);
- }
- public void NavigateTo(string Url)
- {
- AuthCont.Navigate(Url);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement