示例#1
0
        private void WelcomeFlyPanelComponent_Load(object sender, System.EventArgs e)
        {
            var core = new Service.Core(setting);

            if (!core.IsExecutableExist())
            {
                return;
            }

            pnlBasicUsage.Top            = pnlDownloadV2RayCore.Top;
            pnlDownloadV2RayCore.Visible = false;
            this.Height = pnlBasicUsage.Top + marginBottom;
        }
示例#2
0
        public void GetLocalCoreVersion()
        {
            var core    = new Service.Core(Service.Setting.Instance);
            var version = core.GetCoreVersion();

            if (core.IsExecutableExist())
            {
                Assert.AreNotEqual(string.Empty, version);
            }
            else
            {
                Assert.AreEqual(string.Empty, version);
            }
        }