⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chatcommands.cs

📁 ICE3.3.0--聊天程序服务器端demo
💻 CS
字号:
// **********************************************************************
//
// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
//
// This copy of Chat Demo is licensed to you under the terms
// described in the CHAT_DEMO_LICENSE file included in this// distribution.
//
// **********************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace ChatDemoGUI
{

public class ChatCommands
{

    static ChatCommands()
    {
        // Initialize logout command
        _loginCommand = new RoutedUICommand("Login", "Login",typeof(ChatCommands), null);

        // Initialize logout command
        _logoutCommand = new RoutedUICommand("Logout", "Logout", typeof(ChatCommands), null);

        // Initialize exit commnad
        _exitCommand = new RoutedUICommand("Exit", "&Exit", typeof(ChatCommands), null);

        // Initialize about command
        _aboutCommand = new RoutedUICommand("About", "About", typeof(ChatCommands), null);
    }

    public static RoutedUICommand Login
    {
        get
        {
            return _loginCommand;
        }
    }

    public static RoutedUICommand Logout
    {
        get
        {
            return _logoutCommand;
        }
    }

    public static RoutedUICommand Exit
    {
        get
        {
            return _exitCommand;
        }
    }

    public static RoutedUICommand About
    {
        get
        {
            return _aboutCommand;
        }
    }

    private static RoutedUICommand _loginCommand;
    private static RoutedUICommand _logoutCommand;
    private static RoutedUICommand _exitCommand;
    private static RoutedUICommand _aboutCommand;
}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -