chatcommands.cs

来自「ICE3.3.0--聊天程序服务器端demo」· CS 代码 · 共 77 行

CS
77
字号
// **********************************************************************
//
// 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 + =
减小字号Ctrl + -
显示快捷键?