Esempio n. 1
0
        public void GroupChange()
        {
            this.EmailOptions = new ObservableCollection <EmailGroupOption>();
            foreach (var item in this.SelectGroupItem.ListEmail)
            {
                EmailGroupOption op = new EmailGroupOption(item);
                op.IsSelected = true;
                this.EmailOptions.Add(op);
            }

            this.NotesOptions = new ObservableCollection <NotesGroupOption>();
            foreach (var item in this.SelectGroupItem.ListNotes)
            {
                NotesGroupOption op = new NotesGroupOption(item);
                op.IsSelected = true;
                this.NotesOptions.Add(op);
            }

            this.FtpOptions = new ObservableCollection <FtpGroupOption>();
            foreach (var item in this.SelectGroupItem.ListFtp)
            {
                FtpGroupOption op = new FtpGroupOption(item);
                op.IsSelected = true;
                this.FtpOptions.Add(op);
            }

            this.LanOptions = new ObservableCollection <LanGroupOption>();
            foreach (var item in this.SelectGroupItem.ListLan)
            {
                LanGroupOption op = new LanGroupOption(item);
                op.IsSelected = true;
                this.LanOptions.Add(op);
            }
        }
Esempio n. 2
0
        public void AddLan()
        {
            if (this.lanTempPath == null || this.lanTempPath.Trim().Equals(string.Empty))
            {
                this.Hint = "临时路径不能为空!";
                return;
            }

            if (this.LanOptions == null)
            {
                this.LanOptions = new ObservableCollection <LanGroupOption>();
            }

            LanAddress addr = new LanAddress();

            addr.LanPath = this.lanTempPath.Trim();
            addr.LanName = this.lanUserName;
            addr.LanPwd  = this.lanPwd;
            LanGroupOption op = new LanGroupOption(addr);

            op.IsSelected = true;
            this.LanOptions.Add(op);
            this.LanTempPath = "";
            this.LanUserName = "";
            this.LanPwd      = "";
        }
Esempio n. 3
0
        public void InitLanInfo()
        {
            LanAddressConfig config = new LanAddressConfig();

            this.LanOptions = new ObservableCollection <LanGroupOption>();
            foreach (var item in config.ListLanAddr)
            {
                var op = new LanGroupOption(item);
                this.LanOptions.Add(op);
            }
        }