点击回首页
我的浏览记录 | | 帮助?
当前位置:
首页>> 开发辅助>> WPF仿杀毒软件界面UI-360悬浮加速球功能>> 源文件浏览
[商业版 120金币] WinForm,下载次数:1 次 | 关键字: WPF 加速球 UI

源码截图

源码目录树

当前路径:MainWindow.xaml.cs     using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using System.Reflection;
using System.IO;
using System.Collections;
using System.Diagnostics;
using System.Text.RegularExpressions;

namespace MutiMenu
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private NotifyIcon TrayIcon;
        private System.Windows.Forms.ContextMenu notifyiconMnu;
        public List<string> pathList = new List<string>(8);
        public List<string> defaultPathList = new List<string>(8);
        public MainWindow()
        {
            InitializeDefaultPathList();
            InitializePathList();
            InitializeComponent();
            Initializenotifyicon();
            SetAllImage();
            SetEnvironmentVariables();
        }
        private void InitializeDefaultPathList()
        {
            if (pathList.Count > 0)
                pathList.Clear();
            defaultPathList.Add(@"explorer.exe");
            defaultPathList.Add(@"C:\Program Files\Internet Explorer\iexplore.exe");
            defaultPathList.Add(@"C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE");
            defaultPathList.Add(@"C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE");
            defaultPathList.Add(@"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE");
            defaultPathList.Add(@"calc.exe");
            defaultPathList.Add(@"mspaint.exe");
            defaultPathList.Add(@"C:\Program Files\KuGou\KuGou2008\KuGoo.exe");

        }
        public void InitializePathList()
        {
            if(pathList.Count > 0)
                pathList.Clear();
            //get environment variables
            string strEnvMunu = null;
            strEnvMunu = Environment.GetEnvironmentVariable("Frank_MutiMenu", EnvironmentVariableTarget.User);

            if (strEnvMunu == null)
            {
                foreach (string strPath in defaultPathList)
   ...
对不起,完整源码文件,请先购买后再查看
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途) 企业QQ:2852517674
地址:北京市海淀区中关村鼎好大厦A座二层 邮编:100080
Room A-801,Dinghao Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2015. 京ICP备09089570号 | 京公网安备11010702000869号
分享该页面
关闭侧边栏