コード例 #1
0
        private void cmdBrowseArgs_Click(object sender, EventArgs e)
        {
            frmRemoteOpenSaveDlg frm = new frmRemoteOpenSaveDlg(MachineID, SystemRoot, frmRemoteOpenSaveDlg.OpenSaveMode.Open, "Browse for argurments", "All files|*.*", false, Program.net.CloneElement());

            if (frm.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            txtArgs.Text = frm.SelectedFilename;
        }
コード例 #2
0
        private void cmdAddFile_Click(object sender, EventArgs e)
        {
            frmRemoteOpenSaveDlg frm = new frmRemoteOpenSaveDlg(MID, cd.SystemRoot, frmRemoteOpenSaveDlg.OpenSaveMode.Open, "Copy files from " + ComputerName,
                                                                "All files|*.*", true, Program.net);

            if (frm.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            foreach (string filename in frm.SelectedFilenames)
            {
                if (RemoteFiles.Contains(filename) == false)
                {
                    RemoteFiles.Add(filename);
                }
            }
            LoadList();
        }