コード例 #1
0
        /// <summary>
        /// 添加主机
        /// </summary>
        private void btnAddRemoteHost_Click(object sender, EventArgs e)
        {
            var hostForm = new RemoteHostForm {
                StyleManager = metroStyleManager
            };

            if (hostForm.ShowDialog() == DialogResult.OK)
            {
                LoadHosts();
            }
        }
コード例 #2
0
        private void tmiGropEdit_Click(object sender, EventArgs e)
        {
            if (_currSelectGroup == null)
            {
                return;
            }

            var host     = (RemoteHost)_currSelectGroup.Tag;
            var hostForm = new RemoteHostForm {
                StyleManager = metroStyleManager, RemoteHost = host
            };

            if (hostForm.ShowDialog() == DialogResult.OK)
            {
                LoadHosts();
            }
        }