public FormLogView()
        {
            InitializeComponent();

            Icon = UserSystem.GetFormWindowIcon();

            net_simplify_client = UserClient.Net_simplify_client;
        }
        public FormMainWindow()
        {
            InitializeComponent();

            Icon = UserSystem.GetFormWindowIcon();

            // 初始化头像管理器
            UserClient.PortraitManager = new UserPortrait(Application.StartupPath + @"\Portrait\" + UserClient.UserAccount.UserName);
        }
Beispiel #3
0
 /// <summary>
 /// 初始化
 /// </summary>
 private void FormInitialization(IntegrationFileClient IntegratedFile, string[] files, string factory, string group, string id)
 {
     Icon            = UserSystem.GetFormWindowIcon(); // 设置窗口ICON
     Files           = files;                          // 设置文件名队列
     Factory         = factory;                        // 第一大类
     Group           = group;                          // 第二大类
     Id              = id;                             // 第三大类
     IntegrationFile = IntegratedFile;
 }
Beispiel #4
0
        public FormDownloading(int customer, Action <OperateResult <string> > action)
        {
            InitializeComponent();

            Icon = UserSystem.GetFormWindowIcon();

            net_cmd        = customer;
            DealWithResult = action;
            DoubleBuffered = true;
        }
        /// <summary>
        /// 实例化一个选择服务器账户的窗口,该窗口可以根据工厂属性或是角色属性来筛选
        /// </summary>
        /// <param name="condition">筛选条件</param>
        /// <param name="minSelected">选择账户数量的下限</param>
        /// <param name="multiSelected">选择账户数量的上限</param>
        /// <param name="selected">已选择的账户名</param>
        public FormAccountSelect(string condition = null, int minSelected = 0, int maxSelected = int.MaxValue, List <string> selected = null)
        {
            InitializeComponent();

            Icon          = UserSystem.GetFormWindowIcon();
            m_selected    = selected;
            m_condition   = condition;
            m_MaxSelected = maxSelected;
            m_MinSelected = minSelected;
        }
        /// <summary>
        /// 实例化一个文件上传的窗口
        /// </summary>
        /// <param name="factory">第一大类</param>
        /// <param name="group">第二大类</param>
        /// <param name="id">第三大类</param>
        public FormSimplyFileUpload(string factory, string group, string id)
        {
            InitializeComponent();

            Icon       = UserSystem.GetFormWindowIcon();
            fileItem   = new GroupFileItem();
            fileClient = UserClient.Net_File_Client;
            Factory    = factory;
            Group      = group;
            Id         = id;
        }
        /// <summary>
        /// 实例化对象
        /// </summary>
        /// <param name="factories"></param>
        /// <exception cref="ArgumentNullException"></exception>
        public FormRegisterAccount(string[] factories)
        {
            InitializeComponent();
            Icon = UserSystem.GetFormWindowIcon();

            net_client = UserClient.Net_simplify_client;
            Factories  = new List <string>(factories);


            // 根据自身需求是否添加总公司名称
            Factories.Add("总公司");
        }
        public FormGetInputString(
            string info,
            string defaultValue = "",
            string title        = "等待输入信息",
            int maxlength       = 100
            )
        {
            InitializeComponent();

            Icon         = UserSystem.GetFormWindowIcon();
            Info         = info;
            DefaultValue = defaultValue;
            Title        = title;
            MaxLength    = maxlength;
        }
        public FormShowMachineId()
        {
            InitializeComponent();

            Icon = UserSystem.GetFormWindowIcon();
        }
        public FormUpdateRemote()
        {
            InitializeComponent();

            Icon = UserSystem.GetFormWindowIcon();
        }
        public FormInputNewRole()
        {
            InitializeComponent();

            Icon = UserSystem.GetFormWindowIcon();
        }
 /// <summary>
 /// 实例化一个更新窗口的对象,用来呈现更新日志
 /// </summary>
 /// <param name="versions">包含了更新细节的一个对象,更新日志,更新内容</param>
 public FormUpdateLog(IEnumerable <VersionInfo> versions)
 {
     InitializeComponent();
     Versions = versions;
     Icon     = UserSystem.GetFormWindowIcon();
 }
 public FormAccountDetails()
 {
     InitializeComponent();
     Icon = UserSystem.GetFormWindowIcon();
 }
 public FormLogin()
 {
     InitializeComponent();
     Icon = UserSystem.GetFormWindowIcon();
 }
Beispiel #15
0
 public FormConfiguration()
 {
     InitializeComponent();
     Icon = UserSystem.GetFormWindowIcon();
 }