예제 #1
0
        private void miHostAdd_Click(object sender, RoutedEventArgs e)
        {
            HostInfo hi = new HostInfo();

            hi.ProjectInfoGUID = appState.CurrentUserInfo.ProjectGUID;
            hostInfoEditDlg    = new HostInfoEditDlg(this, "增加主机", hi, true);
            hostInfoEditDlg.Show();
        }
예제 #2
0
        private void lbMIHostInfoEdit_Click(object sender, RoutedEventArgs e)
        {
            TreeHostInfo thi = (TreeHostInfo)tvHostLightInfo.SelectedItem;

            if (thi != null)
            {
                hostInfoEditDlg = new HostInfoEditDlg(this, "编辑主机 - " + thi.HostInfo.Name, thi.HostInfo);
                hostInfoEditDlg.Show();
            }
        }