public MessageBoxItem(MessageActorType type, long id, string name, string count, ImageSource imageSource)
 {
     this.InitializeComponent();
     this.messageType = type;
     this.id = id;
     this.imgFace.Source = imageSource;
     this.tbkName.Text = name;
     this.tbkCount.Text = "(" + count + ")";
     this.inWindow = (this.dataService.INWindow as INWindow);
 }
 public CustomGroupTreeViewItem()
 {
     this.InitializeComponent();
     this.customGroupManagerViewModel = CustomGroupManagerWindowViewModel.GetInstance();
     this.tBlock.ContextMenu = this.GetContextMenu();
     this.tBlock.Text = "新建分组";
     this.sessionService = ServiceUtil.Instance.SessionService;
     this.dataService = ServiceUtil.Instance.DataService;
     this.inWindow = (this.dataService.INWindow as INWindow);
     this.tb.LostFocus += new RoutedEventHandler(this.LostFocus_HandleEvent);
     this.tb.KeyUp += delegate(object s, KeyEventArgs ee)
     {
         if (ee.Key == Key.Return)
         {
             this.TextBoxLostFocus();
         }
     };
     this.tb.SelectAll();
     base.MouseRightButtonDown += new MouseButtonEventHandler(this.CustomGroupTreeViewItem_MouseRightButtonDown);
     base.Loaded += new RoutedEventHandler(this.CustomGroupTreeViewItem_Loaded);
 }
Example #3
0
 public void InitService()
 {
     this.connection = ServiceUtil.Instance.Connection;
     this.fileService = ServiceUtil.Instance.FileService;
     this.dataService = ServiceUtil.Instance.DataService;
     this.sessionService = ServiceUtil.Instance.SessionService;
     this.imageService = ServiceUtil.Instance.ImageService;
     this.utilService = ServiceUtil.Instance.utilService;
     this.wsClient = ServiceUtil.Instance.WsClient;
     this.logger = ServiceUtil.Instance.Logger;
     this.inWindow = (this.dataService.INWindow as INWindow);
     this.AddEventListenerHandler();
 }
 public void InitServer()
 {
     try
     {
         this.inWindow = (this.dataService.INWindow as INWindow);
         this.DepartmentListEventHandle(this.dataService.GetDepartmentList());
         this.listsatff = this.dataService.GetStaffList();
     }
     catch (System.Exception)
     {
     }
 }