private void rgbiSkins_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(e.Item.Caption);
     dockPanelFunctionTree.Refresh();
     xtraTabbedMdiManager1.Invalidate();
     ribbonControl1.Refresh();
 }
 private void galleryControl1_Gallery_ItemDoubleClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     SelectedStorage = new List <StorageVolumeInfo>();
     SelectedStorage.Add((StorageVolumeInfo)e.Item.Tag);
     DialogResult = DialogResult.OK;
     Close();
 }
Exemplo n.º 3
0
        /// <summary>
        /// 皮肤改变事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void rgbiSkin_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            try
            {
                string name    = string.Empty;
                string caption = string.Empty;

                if (RgbiSkin.Gallery == null)
                {
                    return;
                }
                caption = RgbiSkin.Gallery.GetCheckedItems()[0].Caption;//主题的描述
                caption = caption.Replace("主题:", "");
                //name = bsiPaintStyle.Manager.PressedLink.Item.Tag.ToString();//主题的名称
                RgbiSkin.Caption = "主题:" + caption;

                System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
                doc.Load(XMLPath);
                System.Xml.XmlNodeList nodelist = doc.SelectSingleNode("SetSkin").ChildNodes;
                foreach (System.Xml.XmlNode node in nodelist)
                {
                    System.Xml.XmlElement xe = (System.Xml.XmlElement)node;//将子节点类型转换为XmlElement类型
                    if (xe.Name == "Skinstring")
                    {
                        xe.InnerText = caption;
                    }
                }

                doc.Save(XMLPath);
            }
            catch (Exception ex)
            {
                DevExpress.XtraEditors.XtraMessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 4
0
        private void galleryControl1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            BackstageViewControl bvc = Parent.Parent as BackstageViewControl;

            bvc.Ribbon.HideApplicationButtonContentControl();
            int value = Convert.ToInt32(e.Item.Value);

            if (value == 30)
            {
                DashboardTanim frm = new DashboardTanim();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            if (value == 26) //kullanıcı tanımları
            {
                Kullanici frm = new Kullanici();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            if (value == 35) //hareket bağlantı kaynakları
            {
                Kullanici frm = new Kullanici();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
        }
Exemplo n.º 5
0
        //Profile profile = new Profile();
        //nhanVien_BUS nhanVien = new nhanVien_BUS();
        private void galleryDropDown1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            string tag = ((GalleryItem)e.Item).Tag.ToString();

            switch (tag)
            {
            case "profile":
                Profile profile = new Profile();
                profile.user = this.user;
                profile.ShowDialog();
                break;

            case "signin":
                break;

            case "register":
                new Registration().ShowDialog();
                break;

            case "logout":
                Application.Restart();
                break;

            case "close":
                Application.Exit();
                break;
            }
        }
Exemplo n.º 6
0
 void rgbiSkins_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     FXFW.UserSkinSettings us = new FXFW.UserSkinSettings()
     {
         SkinName = UserLookAndFeel.Default.ActiveSkinName
     };
     SaveSettings(us);
 }
 void Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     clickedItem = e.Item;
     if ((OwnerEdit as TokenEdit).EditValue != null && (OwnerEdit as TokenEdit).EditValue.ToString().Contains(e.Item.Description))
     {
         return;
     }
     this.OwnerEdit.ClosePopup(PopupCloseMode.Normal);
 }
Exemplo n.º 8
0
        private void galleryControl1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            BackstageViewControl bvc = Parent.Parent as BackstageViewControl;

            bvc.Ribbon.HideApplicationButtonContentControl();

            int value = Convert.ToInt32(e.Item.Value);

            if (value == 18)
            {
                Proje frm = new Proje();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 19)
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 20)
            {
                Gayrimenkul frm = new Gayrimenkul();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 21)
            {
                FiyatListesi frm = new FiyatListesi();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 22)
            {
                Kampanya frm = new Kampanya();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 23)
            {
                Aktarim frm = new Aktarim();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 24)
            {
                Rapor frm = new Rapor();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 25)
            {
                Tanimlama frm = new Tanimlama();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
        }
Exemplo n.º 9
0
        private void galleryControl1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            BackstageViewControl bvc = Parent.Parent as BackstageViewControl;

            bvc.Ribbon.HideApplicationButtonContentControl();

            int value = Convert.ToInt32(e.Item.Value);

            if (value == 40) //satışa hazırlar
            {
                Proje frm = new Proje();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 41) //tüm satışlar
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 42) //satış iptalleri
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 43) //verilen teklifler
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 44) //rezerveler
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 45) //rezerve iptalleri
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 46) //raporlar
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 47) //tanımlamalar
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
        }
Exemplo n.º 10
0
        private void skinRibbonGalleryBarItem1_GalleryItemClick(object sender,
                                                                DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            if (e.Item.Checked && _currentUser != null)
            {
                //e.Item.Caption => nome com a versao traduzida eh rejeitado.
                //eu preciso do nome original do skin para poder ajustar

                //todos os skins foram mapeados para uma tabela do banco
                //salve o tema do usuario
                new UsuarioDaoManager().SaveSkin(_currentUser, e.Item.Caption);
            }
        }
Exemplo n.º 11
0
        private void galleryControl1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            BackstageViewControl bvc = Parent.Parent as BackstageViewControl;

            bvc.Ribbon.HideApplicationButtonContentControl();

            int value = Convert.ToInt32(e.Item.Value);

            if (value == 50) //performans raporlar
            {
                Proje frm = new Proje();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 51) //satış raporu
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 52) //gelen ödemeler
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 53) //bekleyen ödemeler
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 54) //firma komisyonları
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 55) //personel primleri
            {
                Vaziyet frm = new Vaziyet();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 56) //dashboard ekranları
            {
                DashboardTanim frm = new DashboardTanim();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
        }
Exemplo n.º 12
0
        private void galleryControl1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            BackstageViewControl bvc = Parent.Parent as BackstageViewControl;

            bvc.Ribbon.HideApplicationButtonContentControl();

            int value = Convert.ToInt32(e.Item.Value);

            if (value == 13)
            {
                Baglanti frm = new Baglanti();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 14)
            {
                BaglantiHareketi frm = new BaglantiHareketi();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 15)
            {
                BaglantiPotansiyel frm = new BaglantiPotansiyel();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 16)
            {
                Tanimlama frm = new Tanimlama();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 17)
            {
                Rapor frm = new Rapor();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 49)
            {
                SadakatYonetimi frm = new SadakatYonetimi();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 22)
            {
                Kampanya frm = new Kampanya();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
        }
Exemplo n.º 13
0
        /// <summary>
        /// 换肤Gallery
        /// </summary>
        private void rgbiSkins_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            //  记录员工个人皮肤选项
            String newSkin = Convert.ToString(e.Item.Tag);
            List <KeyValuePair <string, string> > parms = new List <KeyValuePair <string, string> >();

            parms.Add(new KeyValuePair <string, string>("empId", EmpInfo.Id.ToString()));
            parms.Add(new KeyValuePair <string, string>("parmName", "DEF_SKIN"));
            parms.Add(new KeyValuePair <string, string>("value", newSkin));
            CustomException ce = null;

            HttpDataHelper.HttpPostFormUrlParamWithInfo("BASE", "/sys/parameteremp", out ce, parms);
            MessageHelper.ShowInfo("已设置新皮肤: " + newSkin);
        }
Exemplo n.º 14
0
        private void galleryControl1_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
        {
            BackstageViewControl bvc = Parent.Parent as BackstageViewControl;

            bvc.Ribbon.HideApplicationButtonContentControl();

            int value = Convert.ToInt32(e.Item.Value);

            if (value == 8)
            {
                Ofis frm = new Ofis();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 9)
            {
                Personel frm = new Personel();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 10)
            {
                PersonelTakimlari frm = new PersonelTakimlari();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 11)
            {
                PersonelTakimlariYetkileri frm = new PersonelTakimlariYetkileri();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
            else if (value == 12)
            {
                Firma frm = new Firma();
                frm.MdiParent = Master.ActiveForm;
                frm.Show();
            }
        }
Exemplo n.º 15
0
 private void rgbiFont_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     SetFont(e.Item.Caption, e.Item);
 }
Exemplo n.º 16
0
 void ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(e.Item.Caption);
     Settings.Default.Style = e.Item.Caption;
     Settings.Default.Save();
 }
Exemplo n.º 17
0
 private void rgbiSkins_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(e.Item.Caption);
 }
Exemplo n.º 18
0
 private void gControlImages_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     selectedImage = e.Item.ImageOptions.Image;
 }
Exemplo n.º 19
0
 //主体变更
 private void rgbiSkins_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     Settings.Default.SkinStyle = e.Item.Caption;
     Settings.Default.Save();
 }
Exemplo n.º 20
0
 /// <summary>
 /// 保存皮肤配置文件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void rgbiSkin_GalleryItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     ConfigHelper.UpdateConfig("skin_name", e.Item.Tag.ToString(), true);
 }
Exemplo n.º 21
0
 private void galleryControlGallery1_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     GiaoDien = e.Item.Tag.ToString();
     //Changed = true;
 }
Exemplo n.º 22
0
 private void rgbiFontColor_Gallery_ItemClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e)
 {
     SetResultColor((Color)e.Item.Tag, e.Item);
 }