Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            BarLocalizer.Active = new MyBarLocalizer();

            SkinHelper.InitSkinGallery(ribbonGalleryBarItem1, true);
            SkinHelper.InitSkinPopupMenu(popupMenu1);
        }
Пример #2
0
 private void frmGiaodienchinh_Load(object sender, EventArgs e)
 {
     // skins
     DevExpress.UserSkins.BonusSkins.Register();
     //DevExpress.UserSkins.OfficeSkins.Register();
     SkinHelper.InitSkinPopupMenu(btnGiaodien);
 }
Пример #3
0
 private void DevSkin_Load(object sender, EventArgs e)
 {
     //设置本地化的类
     BarLocalizer.Active = new CastorBarLocalizer();
     SkinHelper.InitSkinGallery(ribbonGalleryBarItem1, true);
     barSubItem2.Caption = "点我选皮肤";
     SkinHelper.InitSkinPopupMenu(barSubItem2);
 }
Пример #4
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            SkinHelper.InitSkinPopupMenu(skinlink);
            skin();
            frmTrangchu trangchu = new frmTrangchu();

            TabCreating(this.xtraTabControl1, "Trang Chủ", trangchu);
        }
Пример #5
0
        public MainForm()
        {
            InitializeComponent();

            DoctorForm _doctor_form = new DoctorForm(_DB);

            OpenForm(_doctor_form);
            SkinHelper.InitSkinPopupMenu(StyleContainerItem);
        }
Пример #6
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            Class.RegistryWriter rg = new Class.RegistryWriter();
            this.defaultGiaoDien.LookAndFeel.SkinName = rg.valuekey("style");

            this.Text = this.Text + " " + config("Config.xml", "company") + " V" + config("Config.xml", "version");
            btnDangNhap_ItemClick(null, null);
            SkinHelper.InitSkinPopupMenu(barSubItem4);
        }
Пример #7
0
        public FrmMain()
        {
            InitializeComponent();
            barManager.ForceInitialize();
            SkinHelper.InitSkinPopupMenu(mPaintStyle);
            LoadCategorys();

            Test();
        }
Пример #8
0
 public frmMain()
 {
     InitializeComponent();
     this.WindowState  = FormWindowState.Maximized;
     TsL_TaiKhoan.Text = "Chào " + frmLogin.taikhoang;
     SkinHelper.InitSkinPopupMenu(SkinsLink);
     disable();
     kiemtraquyen();
 }
Пример #9
0
        private void XtraForm1_Load(object sender, EventArgs e)
        {
            SkinHelper.InitSkinPopupMenu(SkinsLink);

            foreach (SkinContainer cn in SkinManager.Default.Skins)
            {
                cboSkins.Properties.Items.Add(cn.SkinName);
            }
        }
Пример #10
0
 private void MAIN_Load(object sender, EventArgs e)
 {
     // clsAddTab.AddTab(xtraTabControl1, "", "Trang Chủ", new MainTC(quyen));
     DevExpress.UserSkins.BonusSkins.Register();
     SkinHelper.InitSkinPopupMenu(skins);
     //
     //
     DevExpress.XtraBars.Helpers.SkinHelper.InitSkinGallery(huyanh, true);
 }
Пример #11
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            SkinHelper.InitSkinPopupMenu(menuPaintStyle);
            BeginInvoke(new MethodInvoker(InitializeForm));

            #region 창 크기 초기화
            this.Width = 1500; this.Height = 950;

            #endregion
        }
Пример #12
0
 public MemberListForm()
 {
     InitializeComponent();
     SkinHelper.InitSkinPopupMenu(skins);
     repBirthDate.MaxValue = new DateTime(DateTime.Today.Year - 18, DateTime.Today.Month, DateTime.Today.Day);
     _repositoryCate       = new CategoryMemberRepository();
     _repository           = new MemberRepository();
     _manistger            = new MemberManager(_repository);
     bitAll.PerformClick();
     memberMessage = SenMemberSelected;
 }
Пример #13
0
        public FrmBilancio(string idBilancio)
        {
            InitializeComponent();
            barManager1.ForceInitialize();
            MyBarLocalizer.Active = new MyBarLocalizer();
            SkinHelper.InitSkinPopupMenu(m_style);



            xtraTabControl1.Dock = DockStyle.Fill;
            this.Text            = "Gestionale amministrativo " + Properties.Settings.Default.Header;


            _presenter = new BilancioFormPresenter(idBilancio, this);
            _presenter.InitializeForm();


            string banca1 = "";
            string banca2 = "";
            string banca3 = "";


            string banca4 = "";
            string banca5 = "";
            string banca6 = "";

            _presenter.FillNomiBanca(ref banca1, ref banca2, ref banca3, ref banca4, ref banca5, ref banca6);



            navBarItem3.Caption  = banca2; //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca2Nome : Properties.Settings.Default.Banca2NomeRegionale;
            navBarItem2.Caption  = banca1; //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca1Nome : Properties.Settings.Default.Banca1NomeRegionale;
            navBarItem11.Caption = banca3; //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca3Nome : Properties.Settings.Default.Banca3NomeRegionale;

            label34.Text = banca1;         //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca1Nome : Properties.Settings.Default.Banca1NomeRegionale +":";
            label33.Text = banca2;         //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca2Nome : Properties.Settings.Default.Banca2NomeRegionale + ":";

            label24.Text = banca1;         //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca1Nome : Properties.Settings.Default.Banca1NomeRegionale +":";
            label6.Text  = banca2;         //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca2Nome : Properties.Settings.Default.Banca2NomeRegionale + ":";

            label2.Text  = banca3;         //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca3Nome : Properties.Settings.Default.Banca3NomeRegionale + ":";
            label18.Text = banca3;         //TipoBilanco.IsProvinciale ? Properties.Settings.Default.Banca3Nome : Properties.Settings.Default.Banca3NomeRegionale + ":";


            label8.Text  = banca4;
            label36.Text = banca5;
            label39.Text = banca6;

            label30.Text = banca4;
            label37.Text = banca5;
            label41.Text = banca6;
        }
Пример #14
0
        private void frmBackOffice_Load(object sender, EventArgs e)
        {
            SkinHelper.InitSkinPopupMenu(iPaintStyle);
            Settings.tabbedView = tabbedView;
            // --------------------------------------
            Settings.LoadControl(new uDashboard());
            ///--------------------------------------


            TreeList1.KeyFieldName = "FormID"; TreeList1.ParentFieldName = "Perant_FormID";
            TreeList1.DataSource   = db.LKUPMainTrees.OrderBy(c => c.indexSort).ToList();
            TreeList1.ExpandToLevel(0);
        }
Пример #15
0
        public FormPrincipal()
        {
            //Pongo al cursor en "modo carga" hasta que se termine de realizar toda la carga de componentes y/o datos
            Cursor = Cursors.WaitCursor;

            InitializeComponent();

            DevExpress.UserSkins.OfficeSkins.Register();
            DevExpress.UserSkins.BonusSkins.Register();



            SkinHelper.InitSkinPopupMenu(SkinsLink);

            Cursor = Cursors.Default;
        }
Пример #16
0
 private void FrmTrangchu_Load(object sender, EventArgs e)
 {
     if (Role == 1)
     {
         btnquanlyuser.Enabled = false;
         btnbanhang.Enabled    = false;
         btnMuahang.Enabled    = false;
         btntinhtien.Enabled   = false;
         btntratien.Enabled    = false;
     }
     if (Role == 2)
     {
         btnbanhang.Enabled  = false;
         btntinhtien.Enabled = false;
     }
     SkinHelper.InitSkinPopupMenu(skin);
 }
Пример #17
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            try
            {
                DevExpress.UserSkins.BonusSkins.Register();
                SkinHelper.InitSkinPopupMenu(blcApariencia);
                EstablecerTema(blcApariencia.ItemLinks);

                CapturarEventosApariencia(blcApariencia.ItemLinks);


                if (ValidarIngreso())
                {
                    string mensajeError = "";

                    CargarMenu(ref mensajeError);
                    ucSeg_Menu_x_Usuario_x_Empresa1.treeListMenu_x_Usuario_x_Empresa.Focus();
                    string CaptionFooter = string.Empty;
                    if (ApplicationDeployment.IsNetworkDeployed)
                    {
                        CaptionFooter = " Publicación #.- " + ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString(4);
                    }
                    else
                    {
                        CaptionFooter = " Publicación #.- " + Assembly.GetExecutingAssembly().GetName().Version;
                    }
                    barStaticItem_param.Caption = CaptionFooter + " Usuario: " + param.IdUsuario + "   Empresa:[" + param.IdEmpresa + "] - " + param.NombreEmpresa;

                    if (param.InfoEmpresa.em_logo != null)
                    {
                        // pictureEditLogo.Image = Funciones.ArrayAImage(param.InfoEmpresa.em_logo);
                    }
                }
                Cargar_Menu_Ribbon_x_Usuario();
                Cargar_Combo();
            }
            catch (Exception ex)
            {
                string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name;
                NameMetodo = NameMetodo + " - " + ex.ToString();
                MessageBox.Show(NameMetodo + " " + param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas)
                                , param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
                Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
            }
        }
Пример #18
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            SkinHelper.InitSkinPopupMenu(MenuSkin);


            //设置本地化的类
            BarLocalizer.Active = new CastorBarLocalizer();
            SkinHelper.InitSkinGallery(ribbonGalleryBarItem1, true);
            barSubItem2.Caption = "点我选皮肤";
            SkinHelper.InitSkinPopupMenu(barSubItem2);

            //SkinHelper.InitSkinPopupMenu(SkinsLink);
            ////Add skin to combobox
            //foreach (SkinContainer cn in SkinManager.Default.Skins)
            //{
            //    cboSkins.Properties.Items.Add(cn.SkinName);
            //}
        }
Пример #19
0
        void iLoadLayout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            OpenFileDialog dlg = new OpenFileDialog();

            dlg.Filter = "XML files (*.xml)|*.xml|All files|*.*";
            dlg.Title  = "Restore Layout";
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Refresh(true);
                try {
                    barManager1.RestoreFromXml(dlg.FileName);
                    SkinHelper.InitSkinPopupMenu(iPaintStyle);
                }
                catch (Exception ex) {
                    LogHelper.WriteLog(LogLevel.LOG_LEVEL_CRIT, ex, typeof(frmMain));
                }
                Refresh(false);
            }
        }
Пример #20
0
        private void frmseg_main_Load(object sender, EventArgs e)
        {
            try
            {
                DevExpress.UserSkins.BonusSkins.Register();
                SkinHelper.InitSkinPopupMenu(btn_temas);
                EstablecerTema(btn_temas.ItemLinks);
                CapturarEventosApariencia(btn_temas.ItemLinks);

                if (ValidarIngreso())
                {
                    CargarMenu();
                    ucseg_menu_x_empresa_x_usuario1.treeList_menu.Focus();
                }
            }
            catch (Exception)
            {
            }
        }
Пример #21
0
 public PdfViewerForm()
 {
     InitializeComponent();
     UpdateGlass();
     pdfViewer.DocumentCreator  = "PDF Viewer Demo";
     pdfViewer.DocumentProducer = "Developer Express Inc., " + AssemblyInfo.Version;
     UserLookAndFeel.Default.SetSkinStyle("Office 2016 Colorful");
     pdfViewer.CreateRibbon();
     foreach (RibbonPage page in ribbonControl.Pages)
     {
         if (page.Text == "PDF Viewer")
         {
             popupSkins.BeginUpdate();
             popupSkins.Ribbon                  = ribbonControl;
             checkItemAllowFormSkins            = new BarCheckItem(ribbonControl.Manager);
             checkItemAllowFormSkins.Caption    = "Allow Form Skins";
             checkItemAllowFormSkins.ItemClick += new ItemClickEventHandler(OnAllowFormSkinsItemClick);
             popupSkins.AddItem(checkItemAllowFormSkins);
             SkinHelper.InitSkinPopupMenu(popupSkins);
             popupSkins.ItemLinks[1].BeginGroup = true;
             popupSkins.EndUpdate();
             popupSkins.Popup += new EventHandler(OnPmSkinsPopup);
             RibbonPageGroup skinsPage = new RibbonPageGroup(ribbonGallerySkins.Caption);
             SkinHelper.InitSkinGallery(ribbonGallerySkins, true);
             skinsPage.CaptionButtonClick += new RibbonPageGroupEventHandler(OnSkinsPageCaptionButtonClick);
             skinsPage.ItemLinks.Add(ribbonGallerySkins);
             RibbonPageGroup devExpressPage = new RibbonPageGroup("DevExpress");
             devExpressPage.ShowCaptionButton = false;
             AddBarItem(devExpressPage, "Getting Started", "GetStarted", OnGettingStartedItemClicked);
             AddBarItem(devExpressPage, "Get Free Support", "GetSupport", OnGetFreeSupportItemClicked);
             AddBarItem(devExpressPage, "Buy Now", "BuyNow", OnBuyNowItemClicked);
             AddBarItem(devExpressPage, "About", "Info", OnAboutItemClicked);
             page.Groups.AddRange(new RibbonPageGroup[] { skinsPage, devExpressPage });
             break;
         }
     }
     mainFormText = Text;
     pdfViewer.DocumentChanged += new PdfDocumentChangedEventHandler(OnPdfViewerDocumentChanged);
     pdfViewer.UriOpening      += OnPdfViewerUriOpening;
     pdfViewer.LoadDocument(GetDocumentStream());
 }
Пример #22
0
        private void frmseg_main_Load(object sender, EventArgs e)
        {
            try
            {
                DevExpress.UserSkins.BonusSkins.Register();
                SkinHelper.InitSkinPopupMenu(btn_temas);
                EstablecerTema(btn_temas.ItemLinks);
                CapturarEventosApariencia(btn_temas.ItemLinks);

                if (ValidarIngreso())
                {
                    CargarMenu();
                    ucseg_menu_x_empresa_x_usuario1.treeList_menu.Focus();
                }
                /*Cargar_Combo();*/
            }
            catch (Exception)
            {
                MessageBox.Show("Ha ocurrido un error, comuníquese con sistemas", param.nom_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #23
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            //  Permission_Hide_Menu(); // call permission hide

            this.Text = this.Text + " " + config("Config.xml", "company") + " V" + config("Config.xml", "version");

            Class.RegistryWriter rg = new Class.RegistryWriter();
            //   this.defaultGiaoDien.LookAndFeel.SkinName = "Xmas 2008 Blue";
            this.defaultGiaoDien.LookAndFeel.SkinName = rg.valuekey("style");
            string sv = rg.valuekey("server");

            if (sv == "Blue")
            {
                btnCauHinh_ItemClick(null, null);
            }
            else
            {
                btnDangNhap_ItemClick(null, null);
            }

            //// timechechSv.Enabled = true;
            SkinHelper.InitSkinPopupMenu(barSubItem2);
            SkinHelper.InitSkinPopupMenu(barSubItem4);
        }
Пример #24
0
 private void frmMain_Load(object sender, System.EventArgs e)
 {
     SkinHelper.InitSkinPopupMenu(iPaintStyle);
     BeginInvoke(new MethodInvoker(InitDemo));
 }