프로젝트

일반

사용자정보

개정판 b2d0f316

IDb2d0f316125ad5439e7530cf5ec796805b5d1dd4
상위 ff2f8d1d
하위 5c3caba6

백흠경이(가) 5달 전에 추가함

Feature: 선택한 객체를 앞으로(+)/뒤로(-) 보내기 기능 추가

Change-Id: I9130a93cfdb2d079f28258f3d669a6f532695f89

차이점 보기:

CommonLib/Common.cs
64 64
        public static string GetConfigString(string section, string key, string def,bool isExternal)
65 65
        {
66 66
            System.Text.StringBuilder strbuilder = new System.Text.StringBuilder(512);
67
            GetPrivateProfileString(section, key, def, strbuilder, 512, Path.Combine(AppStartFolder, "MARKUS.ini"));
67
            string FilePath = Path.Combine(AppStartFolder, "MARKUS.ini");
68
            GetPrivateProfileString(section, key, def, strbuilder, 512, FilePath);
68 69

  
69 70
            string result = strbuilder.ToString();
70 71
            //internal 이면 result return
71 72
            if (isExternal)
72 73
            {
73 74
                System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(512);
74
                GetPrivateProfileString("External", "IP", "", stringBuilder, 512, Path.Combine(AppStartFolder, "MARKUS.ini"));
75
                GetPrivateProfileString("External", "IP", "", stringBuilder, 512, FilePath);
75 76
                string external_ip = stringBuilder.ToString();
76 77
                stringBuilder = new StringBuilder();
77
                GetPrivateProfileString("Internal", "IP", "", stringBuilder, 512, Path.Combine(AppStartFolder, "MARKUS.ini"));
78
                GetPrivateProfileString("Internal", "IP", "", stringBuilder, 512, FilePath);
78 79
                string internal_ip = stringBuilder.ToString();
79 80

  
80 81
                //internalport:externalport
81 82
                stringBuilder = new StringBuilder();
82
                GetPrivateProfileString("PortForwarding", "HUB", "", stringBuilder, 512, Path.Combine(AppStartFolder, "MARKUS.ini"));
83
                GetPrivateProfileString("PortForwarding", "HUB", "", stringBuilder, 512, FilePath);
83 84
                string[] forwarding_hub = stringBuilder.ToString().Split(':');
84 85
                stringBuilder = new StringBuilder();
85
                GetPrivateProfileString("PortForwarding", "RESOURCE", "", stringBuilder, 512, Path.Combine(AppStartFolder, "MARKUS.ini"));
86
                GetPrivateProfileString("PortForwarding", "RESOURCE", "", stringBuilder, 512, FilePath);
86 87
                string[] forwarding_resource = stringBuilder.ToString().Split(':');
87 88
                stringBuilder = new StringBuilder();
88
                GetPrivateProfileString("PortForwarding", "BASE", "", stringBuilder, 512, Path.Combine(AppStartFolder, "MARKUS.ini"));
89
                GetPrivateProfileString("PortForwarding", "BASE", "", stringBuilder, 512, FilePath);
89 90
                string[] forwarding_base = stringBuilder.ToString().Split(':');
90 91

  
91 92
                if(result.Contains(internal_ip))
......
99 100
            }
100 101
            return result;
101 102
        }
103

  
102 104
        public static string IPReplace(string url, bool isExternal)
103 105
        {
104 106
            string result = url;

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)