コード例 #1
0
ファイル: Form1.cs プロジェクト: ReiReiRei/winhistory
        public Form1()
        {
            InitializeComponent();
            history = lib.WinHistory.Login(new Guid("14d88c08-115a-4599-8837-4d2f72065169"), "LogViewer");
            history.Send("Запуск просмоторщика лога");
            clients = history.ReceiveClients().ToList();
            foreach (var client in clients)
            {
                client.MinLevel = 0;
                client.Search   = true;
            }
            ClientView.DataSource  = clients;
            ClientView.VirtualMode = true;



            // foreach( DataGridViewRow row in ClientView.Rows)
            // {



            //     (row.Cells[ClientView.Columns["Search"].Index] as DataGridViewCheckBoxCell).Value = "true";
            //     ClientView.Refresh();
            //     ((DataGridViewTextBoxCell)row.Cells[ClientView.Columns["MinLevel"].Index]).Value = "0";



            //}



            ResfreshMessages();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: ReiReiRei/winhistory
        public Form1()
        {
            InitializeComponent();
            history = lib.WinHistory.Login(new Guid("14d88c08-115a-4599-8837-4d2f72065169"), "LogViewer");
            history.Send("Запуск просмоторщика лога");
            clients = history.ReceiveClients().ToList();
            foreach (var client in clients)
            {
                client.MinLevel = 0;
                client.Search = true;
            }
            ClientView.DataSource = clients;
            ClientView.VirtualMode = true;

            // foreach( DataGridViewRow row in ClientView.Rows)
            // {

            //     (row.Cells[ClientView.Columns["Search"].Index] as DataGridViewCheckBoxCell).Value = "true";
            //     ClientView.Refresh();
            //     ((DataGridViewTextBoxCell)row.Cells[ClientView.Columns["MinLevel"].Index]).Value = "0";

            //}

            ResfreshMessages();
        }