Ejemplo n.º 1
0
        private void ListMenu_Open(object sebder, RoutedEventArgs s)
        {
            ListTool upd = UpdateList.SelectedItem as ListTool;

            if (upd != null && upd is ListTool)
            {
                WindowState = WindowState.Minimized;
                if (upd.Line == "    1 . 批量打开文件")
                {
                    NowChoice = 1;
                }
                else if (upd.Line == "    2 . 调色板")
                {
                    NowChoice = 2;
                }
                //else if (upd.Line == "    3 . 快速启动器")
                //{
                //    NowChoice = 3;
                //}
                else if (upd.Line == "    4 . 倒计时")
                {
                    NowChoice = 4;
                }
                else if (upd.Line == "    5 . QQ 头像获取")
                {
                    NowChoice = 5;
                }
                else if (upd.Line == "    6 . QQ 消息制作")
                {
                    NowChoice = 6;
                }
                else if (upd.Line == "    7 . 记事簿")
                {
                    NowChoice = 7;
                }
                else if (upd.Line == "    * . SOS 图标获取")
                {
                    NowChoice = -1;
                }
                else if (upd.Line == "    回到主页")
                {
                    NowChoice = -2;
                }
                else if (upd.Line == "    CMD")
                {
                    NowChoice = -3;
                }
                else
                {
                    NowChoice = -999;
                }
                //打开窗口OpenInWindow
                error.logWriter("加载工具:" + upd.Line, false);
                OpennInWindow openInWindow = new OpennInWindow();
                openInWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                openInWindow.ShowDialog();
                WindowState = WindowState.Normal;
            }
        }
Ejemplo n.º 2
0
        private void ListMenu_Open(object sebder, RoutedEventArgs s)
        {
            Update upd = UpdateList.SelectedItem as Update;

            if (upd != null && upd is Update)
            {
                if (upd.Line == "    1 . 批量打开文件")
                {
                }
                //打开窗口OpenInWindow
                OpennInWindow openInWindow = new OpennInWindow();
                openInWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                openInWindow.ShowDialog();
            }
        }