示例#1
0
文件: WPcs.cs 项目: burstas/rmps
        private void NewNative(MPcs mPcs)
        {
            var client = new NativeClient();

            TabPage ntp = new TabPage();
            ntp.Text = NativeIndex < 1 ? "本地" : string.Format("本地 ({0})", NativeIndex);
            ntp.ImageKey = CPcs.PCS_TYPE_NATIVE;
            TcMeta.TabPages.Add(ntp);

            var pcs = new PcsView(this, mPcs, client, _UserModel, _DataModel);
            pcs.Init();
            pcs.MetaUri = UcUri;
            pcs.Dock = DockStyle.Fill;
            ntp.Controls.Add(pcs);

            TcMeta.SelectedTab = ntp;
            NativeIndex += 1;
        }
示例#2
0
文件: WPcs.cs 项目: burstas/rmps
        private void NewKuaipan(MPcs mPcs)
        {
            var client = _PcsList.GetClient(mPcs);

            TabPage ntp = new TabPage();
            ntp.Text = mPcs.UserName;
            ntp.ImageKey = CPcs.PCS_TYPE_KUAIPAN;
            TcMeta.TabPages.Add(ntp);

            var pcs = new PcsView(this, mPcs, client, _UserModel, _DataModel);
            pcs.Init();
            pcs.MetaUri = UcUri;
            pcs.Dock = DockStyle.Fill;
            ntp.Controls.Add(pcs);

            TcMeta.SelectedTab = ntp;
        }