public Form1() { InitializeComponent(); Functions.Lib = SxLib.InitializeWinForms(this, Direct); Functions.Lib.Load(); Functions.Lib.LoadEvent += SynLoadEvent; }
public Form1() { InitializeComponent(); Stuff.Lib = SxLib.InitializeWinForms(this, ThisDirectory); //Initialize the form and sxlib Stuff.Lib.LoadEvent += this.SxLoadEvent; Stuff.Lib.Load(); //load sxlib }
public Source() { InitializeComponent(); IntroductionTab.BringToFront(); Text = Functions.RandomString(Functions.Rnd.Next(10, 32)); Functions.Lib = SxLib.InitializeWinForms(this, Direct); Functions.Lib.Load(); Functions.Lib.LoadEvent += this.LibraryLoadEvent; Functions.Lib.ScriptHubEvent += new SxLibWinForms.SynScriptHubDelegate(SLibOnScriptHubEvent); }
private void Form1_Load(object sender, EventArgs e) { if (Settings2.Default.topmosts == true) { this.TopMost = true; } else { this.TopMost = false; } materialLabel1.ForeColor = Color.White; listBox1.Items.Clear(); Functions.PopulateListBox(listBox1, "./scripts", "*.txt"); Functions.PopulateListBox(listBox1, "./scripts", "*.lua"); Functions.Lib = SxLib.InitializeWinForms(this, Settings2.Default.paths); Functions.Lib.LoadEvent += LibraryLoadEvent; Functions.Lib.Load(); var materialSkinManager = MaterialSkinManager.Instance; materialSkinManager.AddFormToManage(this); materialSkinManager.Theme = MaterialSkinManager.Themes.DARK; materialSkinManager.ColorScheme = new ColorScheme(Primary.Blue800, Primary.Blue700, Primary.Blue800, Accent.Blue100, TextShade.WHITE); this.webBrowser1.Navigate(string.Format("file:///{0}ace/AceEditor.html", AppDomain.CurrentDomain.BaseDirectory)); }