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
        private void OnSwitchFormSkinStyle_Click(object sender, ItemClickEventArgs e)
        {
            if (SkinManager.AllowFormSkins)
            {
                SkinManager.DisableFormSkins();
                miAllowFormSkins.Checked = false;
            }
            else
            {
                SkinManager.EnableFormSkins();
                miAllowFormSkins.Checked = true;
            }
            LookAndFeelHelper.ForceDefaultLookAndFeelChanged();


            if (sender is frmMain)
            {
                return;
            }
            try
            {
                ConfigurationManagerEx.AllowFormSkins = SkinManager.AllowFormSkins;
                ConfigurationManagerEx.Save();
            }
            catch (Exception ex)
            {
                ExceptionHelper.Show(this, ex, "შეცდომა თემის ჩართვის შენახვისას", MessageBoxIcon.Error);
            }
        }
Beispiel #3
0
        private void InitSkins()
        {
            barManager.ForceInitialize();
            for (var i = 0; i < SkinManager.Default.Skins.Count; i++)
            {
                var item = new BarButtonItem(barManager, skinMask + SkinManager.Default.Skins[i].SkinName);
                miPaintStyle.AddItem(item);
                item.ItemClick += new ItemClickEventHandler(OnSkinClick);

                if (ConfigurationManagerEx.SkinName == SkinManager.Default.Skins[i].SkinName && ConfigurationManagerEx.SkinName != UserLookAndFeel.Default.ActiveSkinName)
                {
                    OnSkinClick(this, new ItemClickEventArgs(item, (item.Links.Count > 0 ? item.Links[0] : null)));
                }
            }


            if (SkinManager.AllowFormSkins)
            {
                SkinManager.DisableFormSkins();
            }

            if (ConfigurationManagerEx.AllowFormSkins)
            {
                OnSwitchFormSkinStyle_Click(this, new ItemClickEventArgs(miAllowFormSkins, (miAllowFormSkins.Links.Count > 0 ? miAllowFormSkins.Links[0] : null)));
            }
        }
 protected virtual void OnSwitchFormSkinStyle_Click(object sender, ItemClickEventArgs e)
 {
     if (SkinManager.AllowFormSkins)
     {
         SkinManager.DisableFormSkins();
     }
     else
     {
         SkinManager.EnableFormSkins();
     }
     DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged();
 }
Beispiel #5
0
 void OnAllowFormSkinsItemClick(object sender, ItemClickEventArgs e)
 {
     if (SkinManager.AllowFormSkins)
     {
         SkinManager.DisableFormSkins();
     }
     else
     {
         SkinManager.EnableFormSkins();
     }
     UpdateGlass();
 }
Beispiel #6
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;
            }
        }