public MainTabPage(LanPlugin plugin) { InitializeComponent(); _plugin = plugin; _plugin.Controller.ActiveUpdate += Controller_ActiveUpdate; Controller_ActiveUpdate(this, null); _plugin.Controller.ModeUpdate += Controller_ModeUpdate; Controller_ModeUpdate(this, null); _AddLogUpdate = addLog; _xmlSettings = new SettingsSerializer(this); LoadSettings(); if (textBoxPort.Text.Length == 0) textBoxPort.Text = "5000"; }
public MainTabPage(LanPlugin plugin) { InitializeComponent(); _plugin = plugin; _plugin.Controller.ActiveUpdate += Controller_ActiveUpdate; Controller_ActiveUpdate(this, null); _plugin.Controller.ModeUpdate += Controller_ModeUpdate; Controller_ModeUpdate(this, null); _AddLogUpdate = addLog; _xmlSettings = new SettingsSerializer(this); LoadSettings(); if (textBoxPort.Text.Length == 0) { textBoxPort.Text = "5000"; } }