static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new frmMain()); BrowserForm container = new BrowserForm(); //adds tab container.Tabs.Add( new EasyTabs.TitleBarTab(container) { Content = new MainForm { Text = "New Tab", Icon = Properties.Resources.TabIcon } }); container.SelectedTabIndex = 0; //TitleBarTabsApplicaionContext applicaionContext = new TitleBarTabsApplicaionContext(); //applicaionContext.Start(container); //Application.Run(applicaionContext); TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); AppContainer container = new AppContainer(); // Add the initial Tab container.Tabs.Add( // Our First Tab created by default in the Application will have as content the Form1 new TitleBarTab(container) { Content = new Form1 { Text = "New Tab" } } ); // Set initial tab the first one container.SelectedTabIndex = 0; // Create tabs and start application TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); }
private static void Main() { string[] arguments = Environment.GetCommandLineArgs(); string openHistory = arguments.FirstOrDefault((string s) => s.StartsWith("/openHistory:")); string openBookmarks = arguments.FirstOrDefault((string s) => s.StartsWith("/openBookmarks:")); Guid historyGuid = Guid.Empty; Guid[] bookmarkGuids = null; // If a history GUID was passed in on the command line if (openHistory != null) { historyGuid = new Guid(openHistory.Substring(openHistory.IndexOf(":", StringComparison.Ordinal) + 1)); List <Process> existingProcesses = new List <Process>(Process.GetProcessesByName("EasyConnect")); if (existingProcesses.Count == 0) { existingProcesses.AddRange(Process.GetProcessesByName("EasyConnect.vshost")); } // If a process is already open, call the method in its IPC channel to tell it to open the given history entry and then exit this process if (existingProcesses.Count > 1) { IpcChannel ipcChannel = new IpcChannel("EasyConnectClient"); ChannelServices.RegisterChannel(ipcChannel, false); HistoryMethods historyMethods = (HistoryMethods)Activator.GetObject(typeof(HistoryMethods), "ipc://EasyConnect/HistoryMethods"); historyMethods.OpenToHistoryGuid(historyGuid); return; } } // If the user is trying to open bookmarks via the command line else if (openBookmarks != null) { string bookmarks = openBookmarks.Substring(openBookmarks.IndexOf(":", StringComparison.Ordinal) + 1); bookmarkGuids = (from bookmark in bookmarks.Split(',') where !String.IsNullOrEmpty(bookmark) select new Guid(bookmark)).ToArray(); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MainForm mainForm = new MainForm(bookmarkGuids) { OpenToHistory = historyGuid }; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(mainForm); Application.Run(applicationContext); }
private static void Main() { string[] arguments = Environment.GetCommandLineArgs(); string openHistory = arguments.FirstOrDefault((string s) => s.StartsWith("/openHistory:")); string openBookmarks = arguments.FirstOrDefault((string s) => s.StartsWith("/openBookmarks:")); Guid historyGuid = Guid.Empty; Guid[] bookmarkGuids = null; // If a history GUID was passed in on the command line if (openHistory != null) { historyGuid = new Guid(openHistory.Substring(openHistory.IndexOf(":", StringComparison.Ordinal) + 1)); List<Process> existingProcesses = new List<Process>(Process.GetProcessesByName("EasyConnect")); if (existingProcesses.Count == 0) existingProcesses.AddRange(Process.GetProcessesByName("EasyConnect.vshost")); // If a process is already open, call the method in its IPC channel to tell it to open the given history entry and then exit this process if (existingProcesses.Count > 1) { IpcChannel ipcChannel = new IpcChannel("EasyConnectClient"); ChannelServices.RegisterChannel(ipcChannel, false); HistoryMethods historyMethods = (HistoryMethods) Activator.GetObject(typeof (HistoryMethods), "ipc://EasyConnect/HistoryMethods"); historyMethods.OpenToHistoryGuid(historyGuid); return; } } // If the user is trying to open bookmarks via the command line else if (openBookmarks != null) { string bookmarks = openBookmarks.Substring(openBookmarks.IndexOf(":", StringComparison.Ordinal) + 1); bookmarkGuids = (from bookmark in bookmarks.Split(',') where !String.IsNullOrEmpty(bookmark) select new Guid(bookmark)).ToArray(); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MainForm mainForm = new MainForm(bookmarkGuids) { OpenToHistory = historyGuid }; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(mainForm); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); TabService tabService = new TabService(); tabService.InitialTab(); TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(tabService.AppContainer); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); TestApp testApp = new TestApp(); //Display Welcome To EasyTabs in the default browser testApp.AddNewTab("data:text/html,%3Ch1%3EWelcome%20to%20EasyTabs!%3C%2Fh1%3E"); testApp.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(testApp); Application.Run(applicationContext); }
private void DoLogin() { if (!(cboxKadi.SelectedItem is user)) { return; } user user = (user)cboxKadi.SelectedItem; if (user == null) { throw new Exception("Kullanıcı bulunamadı"); } var sifre = user.password; if (sifre != txtSifre.Text) { ShowMessage.Warning("Şifre yanlış."); Log.Warning("[Yanlış Şifre]: " + user.name, $"{user.name} isimli kullanıcı {DateTime.Now.ToString()} tarihinde yanlış şifre ile giriş yapmaya çalıştı."); return; } user.lastlogin = DateTime.Now; new UserBLL().Guncelle(user); UserBLL.ActiveUser = user; MainForm ana = new MainForm { Text = "Yönetim Paneli" }; tabbedApp.Tabs.Add(new TitleBarTab(tabbedApp) { Content = ana, ShowCloseButton = false }); tabbedApp.SelectedTabIndex = 0; Forms.Container.MainForm = ana; ApplicationContext = new TitleBarTabsApplicationContext(); ApplicationContext.Start(tabbedApp); this.Hide(); //ana.Show(); txtSifre.Text = string.Empty; }
private void lblLoaded_TextChanged(object sender, EventArgs e) { tabbedApp.Tabs.Add(new TitleBarTab(tabbedApp) { Content = new CcBibleSearch { Text = "Bible Search" } }); tabbedApp.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(tabbedApp); this.Hide(); }
private void Button1_Click(object sender, EventArgs e) { tabbedApp.Tabs.Add(new TitleBarTab(tabbedApp) { Content = new Form1 { Text = "New Tab" } }); tabbedApp.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(tabbedApp); this.Hide(); }
static void Main() { var culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); System.Globalization.CultureInfo.DefaultThreadCurrentCulture = culture; System.Globalization.CultureInfo.DefaultThreadCurrentUICulture = culture; System.Threading.Thread.CurrentThread.CurrentCulture = culture; System.Threading.Thread.CurrentThread.CurrentUICulture = culture; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); AppContainer container = new AppContainer(); string[] args = Environment.GetCommandLineArgs(); if (args.Length > 1) { if (args[1].Contains(".pipeline")) { pipeline_to_open = args[1]; } } // Add the initial Tab container.Tabs.Add( // Our First Tab created by default in the Application will have as content the Form1 new TitleBarTab(container) { Content = new Form1 { } } ); pipeline_to_open = ""; // Set initial tab the first one container.SelectedTabIndex = 0; // Create tabs and start application TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Frm_Main()); Config.container = new AppContainer(); AppContainer container = Config.container; TitleBarTab tb = new TitleBarTab(container); tb.Content = new FrmBrowser(tb, string.Empty); tb.Content.Text = "首页"; tb.ShowCloseButton = false;//禁止关闭首页 container.Tabs.Add(tb); container.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new Main()); AppContainer container = new AppContainer(); container.Tabs.Add(new EasyTabs.TitleBarTab(container) { Content = new Main { Text = "BasicBrowse" } }); container.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FireFox container = new FireFox(); container.Tabs.Add(new EasyTabs.TitleBarTab(container) { Content = new Form1 { Text = "New Tab" } }); container.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); TestApp testApp = new TestApp(); testApp.Tabs.Add( new TitleBarTab(testApp) { Content = new TabWindow { Text = "New Tab" } }); testApp.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(testApp); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); BbMainWindow kivinjari = new BbMainWindow(); kivinjari.Tabs.Add(new TitleBarTab(kivinjari) { Content = new CcTabWindow("") { Text = "New Tab" } }); kivinjari.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(kivinjari); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); AppContanier contanier = new AppContanier(); contanier.Tabs.Add( new TitleBarTab(contanier) { Content = new Form1 { } }); //set initial tab first one contanier.SelectedTabIndex = 0; //Create tabs and start aplication TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(contanier); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new ProjectSelector()); //Application.Run(new ProjectCreator()); container = new AppContainer(); if (launch) { container.Tabs.Add(new EasyTabs.TitleBarTab(container) { Content = new DenebStudio { Text = "Deneb Studio", Icon = Icon.FromHandle(Properties.Resources.EditIcon.GetHicon()) } }); container.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Sibor Sibor = new Sibor(); Sibor.Tabs.Add( new TitleBarTab(Sibor) { Content = new TabWindow { Text = "New Tab" } }); Sibor.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(Sibor); Application.Run(applicationContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); tabbedApp = new AppTabs(); tabbedApp.Tabs.Add(new TitleBarTab(tabbedApp) { Content = new AaSongBook { Text = "vSongBook Search" } }); tabbedApp.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(tabbedApp); Application.Run(applicationContext); //Application.Run(new EeSettings()); }
private void lblLoaded_TextChanged(object sender, EventArgs e) { /*if (settings.ShowHelpFirst) * { * tabbedApp.Tabs.Add(new TitleBarTab(tabbedApp) * { * Content = new BbTutorial { Text = "Welcome to vSongBook" } * }); * }*/ tabbedApp.Tabs.Add(new TitleBarTab(tabbedApp) { Content = new CcSongView { Text = "Song Search 1" } }); tabbedApp.SelectedTabIndex = 0; TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(tabbedApp); tmrTabs.Enabled = true; this.Hide(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new App_Container()); App_Container container = new App_Container(); container.Tabs.Add( new TitleBarTab(container) { Content = new check_browser { Text = "New Tab" } } ); TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); }
static void Main(string[] args) { Application.EnableVisualStyles(); if (args.Length > 0) { container.Tabs.Add( new TitleBarTab(container) { Content = new Main(args[0]) { Text = "SSH Instance" } } ); } else { container.Tabs.Add( new TitleBarTab(container) { Content = new Main { Text = "SSH Instance" } } ); } // Set initial tab the first one container.SelectedTabIndex = 0; // Create tabs and start application TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(container); Application.Run(applicationContext); }
static void Main(string[] args) { // subscribe to our wonderful exception handler AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler); // perform the directory check Surf.app.app_directory_checker.directoryCheck(); // load the user settings app.user_settings.loadUserSettings(); // enable Windows visual styles Application.EnableVisualStyles(); // This is used for pre .Net 1.x controls, none of which we use. // If enabled, it forces the app to draw using GDI+. // GDI+ is the old way, GDI is the new way. // PERMANENT: False Application.SetCompatibleTextRenderingDefault(false); // prepare the new CefSharp settings var settings = new CefSettings { UserAgent = app.product.userAgent, CachePath = app.product.dirCache, BrowserSubprocessPath = "surf.exe", }; // Not really sure if we need this, it seems // that CefSettings.CachePath also sets for // the cookies path. Cef.SetCookiePath(app.product.dirCache, true); // initialize CEF Cef.Initialize(settings); // prepare the new browser window Surf.browser.browser_main browserwindow = new Surf.browser.browser_main(); // add a new tab to the browser window browserwindow.Tabs.Add( new TitleBarTab(browserwindow) { Content = new Surf.browser.tab_frame { Text = "New Tab" } }); browserwindow.SelectedTabIndex = 0; // get the size from our settings. browserwindow.Size = new System.Drawing.Size(app.user_settings.window_width, app.user_settings.window_height); browserwindow.Location = new System.Drawing.Point(user_settings.window_left, user_settings.window_top); // Checks if we should maximize the window or not. // How was it set in the settings? if (app.user_settings.window_maximized == true) { browserwindow.WindowState = FormWindowState.Maximized; } else { browserwindow.WindowState = FormWindowState.Normal; } // prepare the TabRenderer TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext(); applicationContext.Start(browserwindow); // start the browser! Application.Run(applicationContext); } //void Main