Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        private void ChangeServer(object parameter)
        {
            V2RayVMess server = (V2RayVMess)parameter;

            if (TransmitCtrl.ChangeTransmitServer(server))
            {
                InterfaceCtrl.UpdateHomeTransmitStatue();
            }
        }