Ejemplo n.º 1
0
        public static string GetString(PropertiesMode mode)
        {
            string ret = "";

            switch (mode)
            {
            case PropertiesMode.Replace:
                ret = "replace";
                break;

            case PropertiesMode.Update:
                ret = "update";
                break;

            default:
                break;
            }
            return(ret);
        }
Ejemplo n.º 2
0
 public static string GetString(PropertiesMode mode)
 {
     string ret = "";
     switch (mode)
     {
         case PropertiesMode.Replace:
             ret = "replace";
             break;
         case PropertiesMode.Update:
             ret = "update";
             break;
         default:
             break;
     }
     return ret;
 }
Ejemplo n.º 3
0
        public static void ShowDialogFileFolderProperties(Workspace workspace, PendingChange pendingChange, PropertiesMode mode)
        {
            Assembly assembly      = typeof(ConfigureWorkspaceGrid).Assembly;
            var      dialogType    = assembly.GetType("Microsoft.TeamFoundation.VersionControl.Controls.DialogFileFolderProperties");
            dynamic  dynamicDialog = ExposedObject.New(dialogType, TfsContext.VersionControlServer, workspace, pendingChange, mode);

            var d = (Form)dynamicDialog;

            d.ShowDialog();
        }