예제 #1
0
파일: CriFs.cs 프로젝트: Dio-Deus/solitude
    public CriFsBindRequest(BindType type, CriFsBinder targetBinder, CriFsBinder srcBinder, string path)
    {
        /* パスの保存 */
        this.path = path;

        /* バインド種別のチェック */
        switch (type) {
            case BindType.Cpk:
            this.bindId = targetBinder.BindCpk(srcBinder, path);
            break;

            case BindType.Directory:
            this.bindId = targetBinder.BindDirectory(srcBinder, path);
            break;

            case BindType.File:
            this.bindId = targetBinder.BindFile(srcBinder, path);
            break;

            default:
            throw new Exception("Invalid bind type.");
        }
    }