⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manageform.cs

📁 破解的飞信源代码
💻 CS
📖 第 1 页 / 共 3 页
字号:
namespace Imps.Client.Pc.ScheduleSmsUI
{
    using Imps.Client;
    using Imps.Client.Core;
    using Imps.Client.Pc;
    using Imps.Client.Pc.BizControls;
    using Imps.Client.Pc.Controls;
    using Imps.Client.Utils;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class ManageForm : XIMDialog
    {
        private int _currentPage = 1;
        private IFrameworkWindow _framework;
        private BindingSource bindingSourceSms;
        private UButton btnSelectAll;
        private DataGridViewCheckBoxColumn cb;
        private IContainer components;
        private DataGridView dataGridViewSms;
        private DataGridViewTextBoxColumn displayContentDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn displayReceviersNameDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn displaySendTimeDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn Id;
        private Label label1;
        private Label label3;
        private Label label5;
        private Label labelPage;
        private Label labelSum;
        private LinkLabel llFirst;
        private LinkLabel llLast;
        private LinkLabel llNext;
        private LinkLabel llPre;
        private Panel panel1;
        private Panel panel3;
        private Panel panel4;
        private Panel panel5;
        private Panel panel6;
        private Panel panel7;
        private Panel panelGrid;
        private Panel panelMain;
        private Panel panelOperation;
        private const int PERPAGE_SMSCOUNT = 50;
        private PictureBox pictureBox1;
        private PictureBox pictureBox2;
        private PictureBox pictureBox3;
        private UButton uBtnDelete;
        private UButton uBtnRefresh;

        public ManageForm(IFrameworkWindow framework)
        {
            this.InitializeComponent();
            this._framework = framework;
        }

        private void btnSelectAll_Click(object sender, EventArgs e)
        {
            try
            {
                bool flag = true;
                foreach (DataGridViewRow row in this.dataGridViewSms.get_Rows())
                {
                    if ((row.get_Cells().get_Item(0).get_Value() != null) && ((bool) row.get_Cells().get_Item(0).get_FormattedValue()))
                    {
                        continue;
                    }
                    flag = false;
                    break;
                }
                foreach (DataGridViewRow row2 in this.dataGridViewSms.get_Rows())
                {
                    row2.get_Cells().get_Item(0).set_Value(flag ? 0 : 1);
                }
            }
            catch (Exception exception)
            {
                ClientLogger.WriteException(exception);
            }
        }

        private void CurrentUser_StatusChanged(object sender, UserSatusChangedEventArgs e)
        {
            if (this.CurrentUser.Status != UserAccountStatus.Logon)
            {
                base.Close();
            }
        }

        private void dataGridViewSms_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            e.get_ColumnIndex();
        }

        private void displayData(IList<ScheduleSms> data)
        {
            this.dataGridViewSms.set_DataSource(data);
            this.updateLabelInfo();
            this.setPageLinks();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void getSmsData()
        {
            AsyncBizOperation operation = new AsyncBizOperation();
            this.SmsMgr.AsyncGetScheduleSmsList(this.SmsMgr.ScheduleSmsList.Version, null, operation);
            operation.Successed += delegate {
                AsyncBizOperation op = new AsyncBizOperation();
                this.SmsMgr.AsyncGetScheduleSmsBatch(op);
            };
            this.displayData(this.organizeData());
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(ManageForm));
            DataGridViewCellStyle style = new DataGridViewCellStyle();
            DataGridViewCellStyle style2 = new DataGridViewCellStyle();
            this.panel1 = new Panel();
            this.uBtnDelete = new UButton();
            this.uBtnRefresh = new UButton();
            this.pictureBox2 = new PictureBox();
            this.btnSelectAll = new UButton();
            this.pictureBox1 = new PictureBox();
            this.pictureBox3 = new PictureBox();
            this.panelGrid = new Panel();
            this.dataGridViewSms = new DataGridView();
            this.bindingSourceSms = new BindingSource(this.components);
            this.panelOperation = new Panel();
            this.label5 = new Label();
            this.labelPage = new Label();
            this.label3 = new Label();
            this.labelSum = new Label();
            this.label1 = new Label();
            this.llPre = new LinkLabel();
            this.llNext = new LinkLabel();
            this.llFirst = new LinkLabel();
            this.llLast = new LinkLabel();
            this.panelMain = new Panel();
            this.panel3 = new Panel();
            this.panel7 = new Panel();
            this.panel6 = new Panel();
            this.panel5 = new Panel();
            this.panel4 = new Panel();
            this.cb = new DataGridViewCheckBoxColumn();
            this.displayReceviersNameDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn();
            this.displaySendTimeDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn();
            this.displayContentDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn();
            this.Id = new DataGridViewTextBoxColumn();
            this.panel1.SuspendLayout();
            this.pictureBox2.BeginInit();
            this.pictureBox1.BeginInit();
            this.pictureBox3.BeginInit();
            this.panelGrid.SuspendLayout();
            this.dataGridViewSms.BeginInit();
            this.bindingSourceSms.BeginInit();
            this.panelOperation.SuspendLayout();
            this.panelMain.SuspendLayout();
            base.SuspendLayout();
            this.panel1.Controls.Add(this.uBtnDelete);
            this.panel1.Controls.Add(this.uBtnRefresh);
            this.panel1.Controls.Add(this.pictureBox2);
            this.panel1.Controls.Add(this.btnSelectAll);
            this.panel1.Controls.Add(this.pictureBox1);
            this.panel1.Controls.Add(this.pictureBox3);
            this.panel1.Dock = DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(4, 4);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x248, 0x39);
            this.panel1.TabIndex = 0;
            this.uBtnDelete.BackgroundImage = (Image) manager.GetObject("uBtnDelete.BackgroundImage");
            this.uBtnDelete.DisabledBackgroundImage = null;
            this.uBtnDelete.FlatStyle = FlatStyle.Popup;
            this.uBtnDelete.ForeColor = Color.White;
            this.uBtnDelete.HoverBackgroundImage = (Image) manager.GetObject("uBtnDelete.HoverBackgroundImage");
            this.uBtnDelete.Location = new System.Drawing.Point(0xcc, 5);
            this.uBtnDelete.Name = "uBtnDelete";
            this.uBtnDelete.NormalBackgroundImage = (Image) manager.GetObject("uBtnDelete.NormalBackgroundImage");
            this.uBtnDelete.PushedBackgroundImage = (Image) manager.GetObject("uBtnDelete.PushedBackgroundImage");
            this.uBtnDelete.Size = new Size(0x5d, 0x2f);
            this.uBtnDelete.TabIndex = 15;
            this.uBtnDelete.Text = "    删除";
            this.uBtnDelete.set_UseVisualStyleBackColor(true);
            this.uBtnDelete.Click += new EventHandler(this.uBtnDelete_Click);
            this.uBtnRefresh.BackgroundImage = (Image) manager.GetObject("uBtnRefresh.BackgroundImage");
            this.uBtnRefresh.DisabledBackgroundImage = null;
            this.uBtnRefresh.FlatStyle = FlatStyle.Popup;
            this.uBtnRefresh.ForeColor = Color.White;
            this.uBtnRefresh.HoverBackgroundImage = (Image) manager.GetObject("uBtnRefresh.HoverBackgroundImage");
            this.uBtnRefresh.Location = new System.Drawing.Point(0x69, 5);
            this.uBtnRefresh.Name = "uBtnRefresh";
            this.uBtnRefresh.NormalBackgroundImage = (Image) manager.GetObject("uBtnRefresh.NormalBackgroundImage");
            this.uBtnRefresh.PushedBackgroundImage = (Image) manager.GetObject("uBtnRefresh.PushedBackgroundImage");
            this.uBtnRefresh.Size = new Size(0x5d, 0x2f);
            this.uBtnRefresh.TabIndex = 10;
            this.uBtnRefresh.Text = "    刷新";
            this.uBtnRefresh.set_UseVisualStyleBackColor(true);
            this.uBtnRefresh.Click += new EventHandler(this.uBtnRefresh_Click);
            this.pictureBox2.Dock = DockStyle.Right;
            this.pictureBox2.Image = (Image) manager.GetObject("pictureBox2.Image");
            this.pictureBox2.Location = new System.Drawing.Point(0x245, 0);
            this.pictureBox2.Name = "pictureBox2";
            this.pictureBox2.Size = new Size(3, 0x39);
            this.pictureBox2.TabIndex = 1;
            this.pictureBox2.TabStop = false;
            this.btnSelectAll.BackgroundImage = (Image) manager.GetObject("btnSelectAll.BackgroundImage");
            this.btnSelectAll.DisabledBackgroundImage = null;
            this.btnSelectAll.FlatStyle = FlatStyle.Popup;
            this.btnSelectAll.ForeColor = Color.White;
            this.btnSelectAll.HoverBackgroundImage = (Image) manager.GetObject("btnSelectAll.HoverBackgroundImage");
            this.btnSelectAll.Location = new System.Drawing.Point(6, 5);
            this.btnSelectAll.Name = "btnSelectAll";
            this.btnSelectAll.NormalBackgroundImage = (Image) manager.GetObject("btnSelectAll.NormalBackgroundImage");
            this.btnSelectAll.PushedBackgroundImage = (Image) manager.GetObject("btnSelectAll.PushedBackgroundImage");
            this.btnSelectAll.Size = new Size(0x5d, 0x2f);
            this.btnSelectAll.TabIndex = 5;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -