Ejemplo n.º 1
0
        public ChatRecordForm(IChatRecordPersister remote, IChatRecordPersister local, Parameter <string, string> gr, Parameter <string, string> _my, IUserNameGetter getter)
        {
            InitializeComponent();

            this.chatBox_history.Initialize(GlobalResourceManager.EmotionDictionary);
            this.isGroupChat     = true;
            this.group           = gr;
            this.my              = _my;
            this.userNameGetter  = getter;
            this.Text            = "群消息记录 - " + gr.Arg2;
            this.remotePersister = remote;
            this.localPersister  = local;
        }
Ejemplo n.º 2
0
        public NoticeRecordForm(IChatRecordPersister remote, IChatRecordPersister local, Parameter <string, string> gr, Parameter <string, string> _my, IUserNameGetter getter, IRapidPassiveEngine engine, IGroup supporter)
        {
            InitializeComponent();

            this.chatBox_history.Initialize(GlobalResourceManager.EmotionDictionary);
            this.isGroupChat        = true;
            this.group              = gr;
            this.my                 = _my;
            this.userNameGetter     = getter;
            this.Text               = "群公告记录 - " + gr.Arg2;
            this.remotePersister    = remote;
            this.localPersister     = local;
            this.rapidPassiveEngine = engine;
            this.ggSupporter        = supporter;
        }
Ejemplo n.º 3
0
        public GroupFileForm(IGroupFilePersister remote, Parameter <string, string> gr, Parameter <string, string> _my, IUserNameGetter getter, IRapidPassiveEngine engine, IGroup supporter)
        {
            InitializeComponent();


            this.listView1.View = View.Details;
            //   ListView listView1 = new ListView();
            // Set the view to show details.
            listView1.View = View.Details;
            // Allow the user to edit item text.
            listView1.LabelEdit = true;
            // Allow the user to rearrange columns.
            listView1.AllowColumnReorder = true;
            // Display check boxes. 是否显示复选框
            listView1.CheckBoxes = false;
            // Select the item and subitems when selection is made. 是否选中整行
            listView1.FullRowSelect = true;
            // Display grid lines. 是否显示网格
            listView1.GridLines = true;
            // Sort the items in the list in ascending order. 升序还是降序
            listView1.Sorting = SortOrder.Ascending;

            ImageList imgList = new ImageList();

            imgList.ImageSize = new Size(1, 36); //分别是宽和高

            listView1.SmallImageList = imgList;  //这里设置listView的SmallImageList ,用imgList将其撑大

            this.listView1.Columns.Add("编号", 60, HorizontalAlignment.Left);
            this.listView1.Columns.Add("文件名称", 360, HorizontalAlignment.Left);
            this.listView1.Columns.Add("大小", 80, HorizontalAlignment.Left);
            this.listView1.Columns.Add("上传人", 120, HorizontalAlignment.Left);
            this.listView1.Columns.Add("上传日期", 160, HorizontalAlignment.Left);
            this.listView1.Visible = true;

            this.isGroupChat     = true;
            this.group           = gr;
            this.my              = _my;
            this.userNameGetter  = getter;
            this.Text            = "群文件 - " + gr.Arg2;
            this.remotePersister = remote;

            this.rapidPassiveEngine = engine;
            this.ggSupporter        = supporter;
        }
Ejemplo n.º 4
0
 public HelloWorldInserter(IUserNameGetter userNameGetter)
 {
     this.userNameGetter = userNameGetter;
 }
Ejemplo n.º 5
0
 public HelloWorldInserter(IUserNameGetter userNameGetter)
 {
     this.userNameGetter = userNameGetter;
 }