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

📄 variant.cs

📁 定义社区节点
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;



namespace feiyun0112.cnblogs.com.CSDNReader.Model
{
    class Variant
    {
        private Variant()
        {
        }
        private static string _Err = "";
        public static string Err
        {
            get { return _Err; }
            set { _Err = value; }
        }

        public static System.Text.Encoding encoding = System.Text.Encoding.UTF8;
        //public static System.Text.Encoding encoding
        //{
        //    get { return _encoding; }
        //    set { _encoding = value; }
        //}
        
        private static Room _CurrentRoom ;
        public static Room CurrentRoom
        {
            get
            {
                return _CurrentRoom;
            }
            set
            {
                _CurrentRoom = value;
            }

        }

        private static User _CurrentUser ;
        public static User CurrentUser
        {
            get
            {
                if (_CurrentUser == null)
                {
                    _CurrentUser = new User();
                }
                return _CurrentUser;
            }
            set
            {
                _CurrentUser = value;

                Functions.DelegateFunc.OnLogin();
            }

        }

        private static frmCSDNReader _MainForm;
        public static frmCSDNReader MainForm
        {
            get
            {
                return _MainForm;
            }
            set
            {
                _MainForm = value;
 
            }

        }

        public static string UserFileName
        {
            get
            {
                return System.Windows.Forms.Application.StartupPath.Replace(@"\", @"\\") + @"\\csdnuser.dat";
            }
             
        }
       


    }
}

⌨️ 快捷键说明

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