예제 #1
0
        public Form1()
        {
            InitializeComponent();
            iDecryptor     = new Decoder.Decryptor();
            FistRun        = true;
            this.timer     = new System.Timers.Timer(500);
            timer.Elapsed += Timer_Elapsed;

            this.metroStyleManager1.Theme = MetroFramework.MetroThemeStyle.Dark;

            this.metroTabControl1.Location = new Point(this.Width, this.metroTabControl1.Location.Y);
            this.metroPanel2.Location      = new Point(this.metroPanel2.Location.X, 0);

            this.ShadowType = MetroFormShadowType.AeroShadow;

            this.psPath = GetDefaultpsPath();


            this.cursesPath = this.psPath + "\\courses";
            this.dbPath     = this.psPath + "\\pluralsight.db";

            Transitions.Transition iTransition = new Transitions.Transition(new Transitions.TransitionType_Deceleration(1000));

            iTransition.add(this.metroTabControl1, "Left", this.Width - 777);
            iTransition.add(this.metroPanel2, "Top", this.Height - 422);
            iTransition.run();

            timer.Enabled = true;
            timer.Start();
            this.metroTextBox3.Text = dbPath;
        }
예제 #2
0
        public Form1()
        {
            InitializeComponent();

            this.metroStyleManager1.Theme = MetroFramework.MetroThemeStyle.Dark;

            this.metroTabControl1.Location = new Point(this.Width, this.metroTabControl1.Location.Y);
            this.metroPanel2.Location      = new Point(this.metroPanel2.Location.X, 0);

            this.ShadowType = MetroFormShadowType.AeroShadow;

            Transitions.Transition iTransition = new Transitions.Transition(new Transitions.TransitionType_Deceleration(1000));

            iTransition.add(this.metroTabControl1, "Left", this.Width - 777);
            iTransition.add(this.metroPanel2, "Top", this.Height - 422);
            iTransition.run();
        }