Plugins_OpenfireSearch/UI/Openfire/Windows/UI_Openfire_Windows_Main.xaml.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Plugins_OpenfireSearch.UI.Openfire.Windows
{
    /// <summary>
    /// UI_Openfire_Windows_OpenfireSearch.xaml 的交互逻辑
    /// </summary>
    public partial class UI_Openfire_Windows_Main : Window
    {
        public UI_Openfire_Windows_Main()
        {
            InitializeComponent();
        }

        private UI.Openfire.Classes.UI_Openfire_Classes_OpenfireSearch_ViewModel vm;

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            vm = new Classes.UI_Openfire_Classes_OpenfireSearch_ViewModel();
            this.DataContext = vm;

            
        }

        private void Button_Search_Click(object sender, RoutedEventArgs e)
        {
            if(string.IsNullOrEmpty(textbox_Phone.Text))
            {
                return;
            }

            if(combobox_SubjectList.SelectedItem == null)
            {
                return;
            }

            Models.OpenfireInfo openfireInfo = combobox_SubjectList.SelectedItem as Models.OpenfireInfo;
            if (openfireInfo == null)
                return;

            //调用httpget请求
            Dictionary<string, string> dic = new Dictionary<string, string>();
            dic.Add("action", "getOpenfireID");
            dic.Add("account", textbox_Phone.Text);
            button_Search.IsEnabled = false;
            string str = Util.HttpHelper.HttpGet("http://"+openfireInfo.url + "/plugins/vjspchatlog", dic);
            textbox_IMID.Text = str.Replace("\"","").Replace("\r","").Replace("\n", "");
            button_Search.IsEnabled = true;
后面还有 3 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。