コード例 #1
0
ファイル: ShellViewModel.cs プロジェクト: freshprince88/TUMTT
        protected override void OnActivate()
        {
            base.OnActivate();
            Events.Subscribe(this);

            string registry     = @"Software\Technische Universität München\Table Tennis Analysis\Secure";
            Secure scr          = new Secure(Secure.Mode.Date);
            bool   validVersion = scr.Algorithm("xyz", registry);

            if (validVersion != true)
            {
                this.TryClose();
            }

            if (this.ActiveItem == null)
            {
                ActivateItem(new WelcomeViewModel(MatchManager));
            }

            var userTto = AppBootstrapper.UserTto;

            if (userTto != null)
            {
                Coroutine.BeginExecute(MatchManager.OpenMatch(userTto).GetEnumerator());
            }
        }
コード例 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            string abc   = @"Software\pos\PosPrivate";
            Secure scr   = new Secure();
            bool   logic = scr.Algorithm("DA412-628DS-S1VD2-SITCH", abc);

            if (logic == true)
            {
                Application.Run(new Login());
            }
        }
コード例 #3
0
ファイル: LogIn.xaml.cs プロジェクト: vikash5536/DataMagnet
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            string RegistryPath = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VRodLooP";
            Secure scr          = new Secure();
            bool   logic        = scr.Algorithm("vikash", RegistryPath);

            if (logic == true)
            {
                GridLogIn.IsEnabled = true;
            }
            else
            {
                Application.Current.Shutdown();
            }
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: pranavspradeep/aimtrade
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string path  = @"Aimsoft\pranav\Protection";
            Secure scr   = new Secure();
            bool   logic = scr.Algorithm("Aimsoft@2018", path);

            if (logic == true)
            {
                Application.Run(new UserSelection());
            }
            //  Application.Run(new Purchase());
            //Application.Run(new ItemwiseReport());
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: rozytwan/POS
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            TrialMaker t = new TrialMaker("TMTestSM", Application.StartupPath + "\\RegFile.reg", Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\TMSetup.dbf", "", 30, "745");

            byte[] MyOwenKey = { 97, 250, 1, 5, 84, 21, 7, 63, 4, 54, 87, 56, 123, 10, 3, 62, 7, 9, 20, 36, 37, 21, 101, 57 };
            t.TripleDESKey = MyOwenKey;
            TrialMaker.RunTypes RT = t.ShowDialog();
            string abc             = @"Software\restrictedarea\restrictedValues\pospos\PosPrivate";
            Secure scr             = new Secure();
            bool   logic           = scr.Algorithm(frmDialog.trial_code, abc);

            if (logic == true)
            {
                Application.Run(new Login());
            }
        }
コード例 #6
0
ファイル: ShellViewModel.cs プロジェクト: freshprince88/TUMTT
        protected override void OnActivate()
        {
            base.OnActivate();
            Events.Subscribe(this);

            if (this.ActiveItem == null)
            {
                ActivateItem(new WelcomeViewModel(Events, MatchManager));
            }

            string registry     = @"Software\Technische Universität München\Table Tennis Analysis\Secure";
            Secure scr          = new Secure(Secure.Mode.Date);
            bool   validVersion = scr.Algorithm("xyz", registry);

            if (validVersion != true)
            {
                this.TryClose();
            }
        }
コード例 #7
0
        static void Main()
        {
            // Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string path  = @"Aimsoft\pranav\Protection";
            Secure scr   = new Secure();
            bool   logic = scr.Algorithm("Aimsoft@2018", path);

            if (logic == true)
            {
                // Application.Run(new Otherfees());
                Application.Run(new Login());
            }
            //Application.Run(new Student());
            //  Application.Run(new Smstoparents());
            //Application.Run(new AllFeecollectedrpt());
            //Application.Run(new Student_Promotion());
        }