コード例 #1
0
ファイル: frmMonitor.cs プロジェクト: nakonechniy/CrazyIIS
        private void btnSelectWeb_Click(object sender, EventArgs e)
        {
            dlgSelectWeb dlg = new dlgSelectWeb();

            dlg.StartPosition = FormStartPosition.CenterParent;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Webs = dlg.Webs;
                if (Webs.Count > 0)
                {
                    if (dataGridView1.Columns.Count != 0)
                    {
                        dataGridView1.Rows.Clear();
                        foreach (string item in Webs)
                        {
                            int i = dataGridView1.Rows.Add();
                            dataGridView1["Name", i].Value = item;
                        }
                        GetNewList();
                    }
                }
                else
                {
                    SetRows();
                }
            }
        }
コード例 #2
0
ファイル: frmMonitor.cs プロジェクト: henrydem/yongfa365doc
        private void btnSelectWeb_Click(object sender, EventArgs e)
        {
            dlgSelectWeb dlg = new dlgSelectWeb();
            dlg.StartPosition = FormStartPosition.CenterParent;
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Webs = dlg.Webs;
                if (Webs.Count > 0)
                {
                    if (dataGridView1.Columns.Count != 0)
                    {
                        dataGridView1.Rows.Clear();
                        foreach (string item in Webs)
                        {
                            int i = dataGridView1.Rows.Add();
                            dataGridView1["Name", i].Value = item;
                        }
                        GetNewList();
                    }
                }
                else
                {
                    SetRows();
                }

            }
        }