Beispiel #1
0
        public static string StartDiff(bool RunSync, string sProgramPath, string sPath1, string sPath2)
        {
            CommandManager manag = new CommandManager();

            return(manag.Run(RunSync, "\"" + sProgramPath + "\"", "\"" + sPath1 + "\" \"" + sPath2 + "\"", ProcessWindowStyle.Maximized, Priority.GetPriority("Средний")));
        }
Beispiel #2
0
        public static string ShowDir(bool RunSync, string sDir)
        {
            CommandManager manag = new CommandManager();

            return(manag.Run(RunSync, "c:\\WINDOWS\\explorer.exe", "\"" + sDir + "\"", ProcessWindowStyle.Maximized, Priority.GetPriority("Средний")));
        }
Beispiel #3
0
        public static string StartFile(bool RunSync, string sProgramPath, System.Windows.Forms.ListView lw)
        {
            ListView.SelectedListViewItemCollection si = lw.SelectedItems;
            CommandManager manag = new CommandManager();

            return(manag.Run(RunSync, "\"" + sProgramPath + "\"", "\"" + si[0].SubItems[0].Text.Split('/')[0] + "\"", ProcessWindowStyle.Maximized, Priority.GetPriority("Средний")));
        }
Beispiel #4
0
        public static string ShowDir(bool RunSync, System.Windows.Forms.ListView lw)
        {
            ListView.SelectedListViewItemCollection si = lw.SelectedItems;
            FileInfo       fi    = new FileInfo(si[0].SubItems[0].Text.Split('/')[0]);
            CommandManager manag = new CommandManager();

            return(manag.Run(RunSync, "c:\\WINDOWS\\explorer.exe", "\"" + fi.Directory.ToString() + "\"", ProcessWindowStyle.Maximized, Priority.GetPriority("Средний")));
        }