コード例 #1
0
            public override void OnExecute(SelectedItem item, string fileName, OutputWindowPane pane)
            {
                string message = "You are about to revert the file '" + fileName + "'. Do you want to do this?";

                if (MessageBox.Show(message, "Revert File?", MessageBoxButtons.YesNo) == DialogResult.Yes)
                {
                    P4Operations.RevertFile(pane, fileName);
                }
            }