private void btnStopInterface_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; _conf = ConsoleAPI.StopEIBInterface(); UpdateView(); Cursor.Current = Cursors.Default; }
void IRefreshable.Refresh() { Cursor.Current = Cursors.WaitCursor; EIBUsersConf conf = ConsoleAPI.GetUsersList(); UpdateView(conf); Cursor.Current = Cursors.Default; }
void IRefreshable.Refresh() { Cursor.Current = Cursors.WaitCursor; EIBInterfaceConf conf = ConsoleAPI.GetEIBInterfaceConf(); UpdateView(conf); Cursor.Current = Cursors.Default; }
public void GetMessageTest_ConsoleAPI() { ConsoleAPI CAPI = new ConsoleAPI(); CAPI.SetMessage(ExpectedResult); String GetMessage = CAPI.GetMessage(); Assert.IsTrue(GetMessage.Equals(ExpectedResult)); }
static void Main(string[] args) { ConsoleAPI CAPI = new ConsoleAPI(); CAPI.SetMessage("Hello World"); Console.WriteLine(CAPI.GetMessage()); Console.ReadKey(); // Demo... }
private void btnSaveUsers_Click(object sender, EventArgs e) { if (ConsoleAPI.SetUsersList(_users)) { _dirty_flag = false; } else { _dirty_flag = true; } }
internal static void InitializeHooks() { On.RoR2.RoR2Application.UnitySystemConsoleRedirector.Redirect += orig => { }; SurvivorAPI.InitHooks(); AssetAPI.InitHooks(); ItemDropAPI.InitHooks(); InventoryAPI.InitHooks(); EntityAPI.InitHooks(); LobbyConfigAPI.InitHooks(); PlayerAPI.InitHooks(); ConsoleAPI.InitHooks(); }
private void btnSaveUsers_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; EIBUsersConf conf = new EIBUsersConf(); foreach (ListViewItem item in this.lvUsers.Items) { EIBUserConf user = item.Tag as EIBUserConf; conf.List.Add(user); } bool res = ConsoleAPI.SetUsersList(conf); Cursor.Current = Cursors.Default; }
void btnReplayLastPkt_Click(object sender, EventArgs e) { EIBAddressTreeNodeConf n = this.treeView1.SelectedNode as EIBAddressTreeNodeConf; if (n == null || n.Details == null) { //Error return; } Cursor.Current = Cursors.WaitCursor; if (!ConsoleAPI.SendAddrCmd(n.Details, ConsoleAPI.BlockingMode.WAIT_FOR_CONFIRM)) { //Error } Cursor.Current = Cursors.Default; }
public static void Main(string[] args) { Console.Title = "TMLPatcher - by convicted tomatophile"; Thread.CurrentThread.Name = "Main"; Instance = new Patcher(); ConsoleAPI.Window = Instance; ConsoleAPI.Initialize(); ConsoleAPI.ParseParameters(args); Patcher.InitializeConsoleOptions(); Patcher.InitializeProgramOptions(); InstallILSpyCMD(); Instance.WriteStaticText(false); Instance.CheckForUndefinedPath(); ConsoleAPI.SelectedOptionSet.ListForOption(); }
void IRefreshable.Refresh() { _conf = ConsoleAPI.GetEIBInterfaceConf(); UpdateView(); }
void IRefreshable.Refresh() { _conf = ConsoleAPI.GetAddressList(); UpdateView(); }
void IRefreshable.Refresh() { _users = ConsoleAPI.GetUsersList(); UpdateListView(); }