private void MenuItem_EnableTransmit(object sender, EventArgs e) { TransmitCtrl.EnableTransmit(!SettingManager.Configuration.IsTransmitEnabled); menuitemEnableTransmit.Checked = SettingManager.Configuration.IsTransmitEnabled; // update interface InterfaceCtrl.UpdateHomeTransmitStatue(); InterfaceCtrl.NotifyIcon.UpdateIcon(); }
private void ChangeServer(object parameter) { V2RayVMess server = (V2RayVMess)parameter; if (TransmitCtrl.ChangeTransmitServer(server)) { InterfaceCtrl.UpdateHomeTransmitStatue(); } }