Beispiel #1
0
        private void frmKullaniciGiris_Load(object sender, EventArgs e)
        {
            Thread.Sleep(5000);
            if (System.Windows.Forms.SystemInformation.TerminalServerSession)
            {
                SkinManager.DisableFormSkins();
                SkinManager.DisableMdiFormSkins();
                Application.VisualStyleState = VisualStyleState.NoneEnabled;

                UserLookAndFeel.Default.UseWindowsXPTheme = false;
                UserLookAndFeel.Default.Style             = LookAndFeelStyle.Flat;

                WindowsFormsSettings.AnimationMode       = AnimationMode.DisableAll;
                WindowsFormsSettings.AllowHoverAnimation = DevExpress.Utils.DefaultBoolean.False;

                BarAndDockingController.Default.PropertiesBar.MenuAnimationType = AnimationType.None;
                BarAndDockingController.Default.PropertiesBar.SubmenuHasShadow  = false;
                BarAndDockingController.Default.PropertiesBar.AllowLinkLighting = false;
            }

            checkAnimsa.Checked = false;

            if (Properties.Settings.Default.Animsa == true)
            {
                txtKullanici.Text   = Properties.Settings.Default.KullaniciAdi;
                txtParola.Text      = Properties.Settings.Default.Parola;
                checkAnimsa.Checked = true;
            }
        }
Beispiel #2
0
        void SetSkin(string skinName)
        {
            DevExpress.UserSkins.BonusSkins.Register();

            if (IsValidSkinName(skinName))
            {
                SkinManager.EnableFormSkins();
                SkinManager.EnableMdiFormSkins();
                SkinManager.EnableFormSkinsIfNotVista();

                UserLookAndFeel.Default.Style = LookAndFeelStyle.Skin;
                UserLookAndFeel.Default.SetSkinStyle(skinName);

                LookAndFeelHelper.ForceDefaultLookAndFeelChanged();
            }
            else
            {
                SkinManager.DisableFormSkins();
                SkinManager.DisableMdiFormSkins();

                UserLookAndFeel.Default.UseDefaultLookAndFeel = true;
            }
        }