• 大小: 9.2MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-19
  • 语言: C#
  • 标签: c#  DEV  Winform  框架  

资源简介

c# DEV Winform 框架c# DEV Winform 框架c# DEV Winform 框架c# DEV Winform 框架c# DEV Winform 框架c# DEV Winform 框架c# DEV Winform 框架

资源截图

代码片段和文件信息

using System;
using System.Windows.Forms;
using DevExpress.XtraBars.Helpers;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraSplashScreen;
using DevExpress.XtraEditors;
using DevExpress.XtraNavBar;
using Servers.Interface;
using Servers.Interface.Types;
using Servers.Common.Utility;
using DevExpress.XtraTab;
using DevExpress.XtraTab.ViewInfo;
using Servers.Common.Utility.Util;
using System.Data;
using System.Diagnostics;

namespace Servers
{
    public partial class FormMain : RibbonForm
    {
        private bool MainMenuChange = false;//菜单栏是否在切换
        public FormMain()
        {
            InitializeComponent();
            this.SizeChanged += new EventHandler(FormMain_SizeChanged);
            SkinHelper.InitSkinGallery(rgbiSkins true);
        }
        private void FormMain_Load(object sender EventArgs e)
        {
            //装载插件
            string errMsg = string.Empty;
            //酒店管理

            Global.Plugins.AddPlugin(“XtraFrmServer“ “Servers.exe“ “服务管理“ “服务监控“ out errMsg);

            timer1_Tick(null null);
            //关闭闪屏窗口
            SplashScreenManager.CloseForm();
        }

        #region 酒店管理

        private void iGO_ItemClick(object sender ItemClickEventArgs e)
        {
            xtraTabControl1.Visible = !xtraTabControl1.Visible;
        }
        private void Item_ItemClick(object sender ItemClickEventArgs e)
        {
            if (MainMenuChange)
            {
                xtraTabControl1.Visible = false;
                xtraTabControlMain.TabPages.Clear();
                this.MainMenuChange = false;
            }

            LoadlinkControl(e.link.Caption);
        }
        //导航按钮点击事件
        private void navBarControl_linkClicked(object sender NavBarlinkEventArgs e)
        {
            LoadlinkControl(e.link.Caption);
        }
        #endregion

        #region 帮助
        private void iHelp_ItemClick(object sender ItemClickEventArgs e)
        {

        }

        private void iAbout_ItemClick(object sender ItemClickEventArgs e)
        {

        }
        #endregion

        #region Fun

        //加载窗体
        public void LoadlinkControl(string controlName)
        {
            if (controlName == “客房状态视图“)
            {
                LoadKf(controlName);
                return;
            }
            SplashScreenManager.ShowForm(this typeof(WaitFormSleap) true true false);
            AvailablePlugin selectedPlugin = Global.Plugins.AvailablePlugins.Find(controlName);
            if (selectedPlugin == null)
            {
                SplashScreenManager.CloseForm();
                XtraMessageBox.Show(“获取窗体失败!“);
                return;
            }
            this.Text = selectedPlugin.MainName;
            try
            {
                string errMsg;
                object objFrm = Reflectionhelper.GetRefObj(selectedPlugin.F

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-08 11:27  AppStart\
     文件       57344  2015-11-19 16:46  AppStart\DotNetOpenMail.dll
     文件      241664  2015-10-28 10:40  AppStart\log4net.dll
     文件     1438186  2015-10-28 10:40  AppStart\log4net.xml
     文件      371200  2017-09-08 11:27  AppStart\Servers.Common.Utility.dll
     文件     1054208  2017-09-08 11:27  AppStart\Servers.Common.Utility.pdb
     文件      595968  2017-09-08 11:27  AppStart\Servers.exe
     文件         144  2017-09-08 11:00  AppStart\Servers.exe.config
     文件        5632  2017-09-08 11:27  AppStart\Servers.Log.dll
     文件       15872  2017-09-08 11:26  AppStart\Servers.Log.pdb
     文件       69120  2017-09-08 11:27  AppStart\Servers.pdb
     文件       22472  2017-09-08 11:26  AppStart\Servers.vshost.exe
     文件         144  2017-09-08 11:00  AppStart\Servers.vshost.exe.config
     目录           0  2017-09-08 10:58  Lib\
     文件      201728  2016-08-16 08:51  Lib\Dos.Common.dll
     文件      195584  2016-08-16 08:51  Lib\Dos.ORM.dll
     文件      226645  2016-08-15 09:14  Lib\DotNetOpenMail.chm
     文件       57344  2015-11-19 16:46  Lib\DotNetOpenMail.dll
     文件      792880  2015-10-28 10:40  Lib\Entityframework.dll
     文件      976896  2015-11-19 16:42  Lib\HolyUpdate.exe
     文件      200704  2010-05-25 12:55  Lib\ICSharpCode.SharpZipLib.dll
     文件       25600  2015-10-28 10:40  Lib\JdSoft.Apns.Notifications.dll
     文件        1558  2015-10-28 10:40  Lib\log4net.config
     文件      241664  2015-10-28 10:40  Lib\log4net.dll
     文件     1438186  2015-10-28 10:40  Lib\log4net.xml
     文件       29760  2015-10-28 10:40  Lib\Microsoft.Practices.ServiceLocation.dll
     文件      133944  2015-10-28 10:40  Lib\Microsoft.Practices.Unity.dll
     文件      125752  2015-10-28 10:40  Lib\Microsoft.Practices.Unity.Interception.dll
     文件      217088  2015-10-28 10:40  Lib\Newtonsoft.Json.Compact.dll
     文件      348160  2015-10-28 10:40  Lib\Newtonsoft.Json.dll
     文件      506976  2015-10-28 10:40  Lib\System.Web.Mvc.dll
............此处省略605个文件信息

评论

共有 条评论